xfs: inode btree scrubber should calculate im_boffset correctly
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Jun 2019 16:18:26 +0000 (09:18 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Jun 2019 16:18:40 +0000 (09:18 -0700)
commit025197ebb08a77eea702011c479ece1229a9525b
tree34ec716eced07329bb145061ecdcfc70596350e2
parentd31d718528dd3686bf2163af5ef6d3afb65bb7aa
xfs: inode btree scrubber should calculate im_boffset correctly

The im_boffset field is in units of bytes, whereas XFS_INO_OFFSET
returns a value in units of inodes.  Convert the units so that scrub on
a 64k-block filesystem works correctly.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/scrub/ialloc.c