From: Darrick J. Wong Date: Mon, 24 Feb 2025 18:21:43 +0000 (-0800) Subject: xfs_scrub: don't (re)set the bulkstat request icount incorrectly X-Git-Tag: v6.14.0~151 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8bc15fa1861701ed4ff6d1d8d0deca4aab4863f5;p=thirdparty%2Fxfsprogs-dev.git 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: # v5.3.0 Fixes: e3724c8b82a320 ("xfs_scrub: refactor xfs_iterate_inodes_range_check") Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig --- diff --git a/scrub/inodes.c b/scrub/inodes.c index a7ea2461..4e4408f9 100644 --- a/scrub/inodes.c +++ b/scrub/inodes.c @@ -66,7 +66,6 @@ bulkstat_for_inumbers( /* First we try regular bulkstat, for speed. */ breq->hdr.ino = inumbers->xi_startino; - breq->hdr.icount = inumbers->xi_alloccount; error = -xfrog_bulkstat(&ctx->mnt, breq); if (error) { char errbuf[DESCR_BUFSZ];