]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_scrub: hoist scrub retry loop to scrub_item_check_file
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:08 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:08 +0000 (17:01 -0700)
commit8dd67c8eccbe0e6b8dd7975ba53f9ccaf532aa9c
tree62160b4a76950ffd50fece386fadb22f0a0eb1be
parentf48d1bf6863c571de098cb1ded3174364141ebc8
xfs_scrub: hoist scrub retry loop to scrub_item_check_file

For metadata check calls, use the ioctl retry and freeze permission
tracking in scrub_item that we created in the last patch.  This enables
us to move the check retry loop out of xfs_scrub_metadata and into its
caller to remove a long backwards jump, and gets us closer to
vectorizing scrub calls.

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