xfs: repair directory parent pointers by scanning for dirents
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:12 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 23:55:14 +0000 (16:55 -0700)
commitb334f7fab57a07fbece40648b4a22ab3f173bd48
tree3b393772a8b3c93cdbf03179980b4d5073878032
parente5d7ce0364d8ee6821fd93814885c3bef775b9c3
xfs: repair directory parent pointers by scanning for dirents

If parent pointers are enabled on the filesystem, we can repair the
entire dataset by walking the directories of the filesystem looking for
dirents that we can turn into parent pointers.  Once we have a full
incore dataset, we'll figure out what to do with it, but that's for a
subsequent patch.

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