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