]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: selectively re-run bulkstat after re-running inumbers
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:42 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:56 +0000 (09:15 -0800)
commitb95546f18e6bfbe477e0bd3c726c9ae8a6c9f2ff
treeeb82f459231402f32a99d0629799928788a8f90f
parentae49784289f7727b8e1fb5e7d5d3d78e5465c257
xfs_scrub: selectively re-run bulkstat after re-running inumbers

In the phase 3 inode scan, don't bother retrying the inumbers ->
bulkstat conversion unless inumbers returns the same startino and there
are allocated inodes.  If inumbers returns data for a totally different
inobt record, that means the whole inode chunk was freed.

Cc: <linux-xfs@vger.kernel.org> # v5.18.0
Fixes: 245c72a6eeb720 ("xfs_scrub: balance inode chunk scan across CPUs")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/inodes.c