xfs: rearrange some code in xfs_bmap for better locality