xfs: implement live updates for parent pointer repairs
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:13 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 23:55:14 +0000 (16:55 -0700)
commit65a1fb7a11291f361d36e6ebf3bb5e60e9ca8d13
tree45e33f52fb346f5ef3fd27cf1af9a5964276c158
parentb334f7fab57a07fbece40648b4a22ab3f173bd48
xfs: implement live updates for parent pointer repairs

While we're scanning the filesystem for dirents that we can turn into
parent pointers, we cannot hold the IOLOCK or ILOCK of the file being
repaired.  Therefore, we need to set up a dirent hook so that we can
keep the temporary file's parent pionters up to date with the rest of
the filesystem.  Hence we add the ability to *remove* pptrs from the
temporary file.

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