]> git.baikalelectronics.ru Git - kernel.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)
commit4a577b20efc6ebf8163df06ecb4d528bc04df833
tree16bc390a260310b768bd664be1c296c3ff434a8d
parent8a46fb4cf62fd472c6305af18989f035e7abf10e
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