]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_scrub: return early from bulkstat_for_inumbers if no bulkstat data
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:57 +0000 (09:15 -0800)
commit1dbcb28da38afdfbc4adb676bfb0bc76f7b2f8fc
tree336f3fffef8b24919e6ef3a310656b5780a232c4
parent3653b83e9076a15eb4e1340f566924292e5be233
xfs_scrub: return early from bulkstat_for_inumbers if no bulkstat data

If bulkstat doesn't return an error code or any bulkstat records, we've
hit the end of the filesystem, so return early.  This can happen if the
inumbers data came from the very last inobt record in the filesystem and
every inode in that inobt record is freed immediately after INUMBERS.
There's no bug here, it's just a minor optimization.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/inodes.c