Re: [PATCH 13/17] xfs_scrub: return early from bulkstat_for_inumbers if no bulkstat data

Christoph Hellwig
2025-02-07T04:43:42Z

On Thu, Feb 06, 2025 at 02:34:04PM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
>
> 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.