[PATCH 5.4 06/17] xfs: range check ri_cnt when recovering log items