]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: count inode blocks correctly in inobt scrub
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 12 Dec 2018 16:46:26 +0000 (08:46 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 12 Dec 2018 16:47:17 +0000 (08:47 -0800)
commit2c2d9d3a205afa93bf6105e4ab6f1ff536291dc6
tree16bc390a260310b768bd664be1c296c3ff434a8d
parentc1b4a321ede083521b91c314e1c4fa233ac33740
xfs: count inode blocks correctly in inobt scrub

A big block filesystem might require more than one inobt record to cover
all the inodes in the block.  In these cases it is not correct to round
the irec count up to the nearest block because this causes us to
overestimate the number of inode blocks we expect to find.

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