xfs: deferred scrub of dirents
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:02 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:47:02 +0000 (07:47 -0700)
commitb961c8bf1fc3d0232209a49f47d1cd7a55b7a861
treeee1c8237339bb6fe801d8126f47986de9e7d04b7
parent61b3f0df5c235806d372aaf696ce9aee7746d18f
xfs: deferred scrub of dirents

If the trylock-based parent pointer check fails, retain those dirents
and check them at the end.  This may involve dropping the locks on the
file being scanned, so yay.

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