xfs: repair directories by scanning directory parent pointers
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:10 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 23:55:13 +0000 (16:55 -0700)
commit76fc23b695f4717bb5e7b616eaad7d6213fdea9f
treee2ea49bd64f8b2a5140c7ac8ea1fde6316e40b0a
parent5769aa41ee34d4d1cc2b35376107b8e9694698f0
xfs: repair directories by scanning directory parent pointers

For filesystems with parent pointers, scan the entire filesystem looking
for parent pointers that target the directory we're rebuilding instead
of trying to salvage whatever we can from the directory data blocks.
This will be more robust than salvaging, but there's more code to come.

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