]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: don't (re)set the bulkstat request icount incorrectly
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:43 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:56 +0000 (09:15 -0800)
commit8bc15fa1861701ed4ff6d1d8d0deca4aab4863f5
tree9ffd8d93f9ddce75d5ad18e4e7c5ce4f69d6e2f2
parent174298876add91c2b3d414c6c1cd4b09a47a0517
xfs_scrub: don't (re)set the bulkstat request icount incorrectly

Don't change the bulkstat request icount in bulkstat_for_inumbers
because alloc_ichunk already set it to LIBFROG_BULKSTAT_CHUNKSIZE.
Lowering it to xi_alloccount here means that we can miss inodes at the
end of the inumbers chunk if any are allocated to the same inobt record
after the inumbers call but before the bulkstat call.

Cc: <linux-xfs@vger.kernel.org> # v5.3.0
Fixes: e3724c8b82a320 ("xfs_scrub: refactor xfs_iterate_inodes_range_check")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/inodes.c