xfs: online repair of parent pointers
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:53 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:58:56 +0000 (14:58 -0700)
commitcc22edab9ea7f3ebcb61d41a417d4397e9b7b128
treee214b2a476d7dae7e83399e9dea764d1aaeb2c6a
parenta07b45576264e77ea1a781b552873e76b8b0dacc
xfs: online repair of parent pointers

Teach the online repair code to fix parent pointers for directories.
For now, this means correcting the dotdot entry of an existing directory
that is otherwise consistent.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/scrub/parent.c
fs/xfs/scrub/parent_repair.c [new file with mode: 0644]
fs/xfs/scrub/repair.h
fs/xfs/scrub/scrub.c
fs/xfs/scrub/trace.h