xfs: invalidate dirloop scrub path data when concurrent updates happen
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:21 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 23:55:16 +0000 (16:55 -0700)
commitd54c5ac80f8f180eb064ca255d61a879aef6f06d
treebcd23a1663ad5a7d8de9417f3d98607bb454b343
parent928b721a11789a9363d6d7c32a1f3166a79f3b5f
xfs: invalidate dirloop scrub path data when concurrent updates happen

Add a dirent update hook so that we can detect directory tree updates
that affect any of the paths found by this scrubber and force it to
rescan.

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