]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_scrub: don't return garbage value from bulkstat_the_rest
authorDarrick J. Wong <djwong@kernel.org>
Thu, 4 Jun 2026 06:08:14 +0000 (23:08 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Thu, 11 Jun 2026 10:26:04 +0000 (12:26 +0200)
commitdc4e11fa3d7cc2dfcf5fb526e16e6d54e4cf40b1
treebcf163beef93f7fa738baeec86e21aba114a72a4
parent709b7eab89777c6513043157335e0ef60c695a0f
xfs_scrub: don't return garbage value from bulkstat_the_rest

bulkstat_the_rest returns an inode mask, but Codex noticed that we
carelessly return an error number if we can't allocate a bulkstat
request.  Fix this by returning 0, which forces the caller to singlestep
the rest of the bulkstat array.

Cc: linux-xfs@vger.kernel.org # v6.14.0
Fixes: 7ae92e1cb0aeeb ("xfs_scrub: try harder to fill the bulkstat array with bulkstat()")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
scrub/inodes.c