xfs: adapt the orphanage code to handle parent pointers
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:17 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 23:55:15 +0000 (16:55 -0700)
commit7be3d20bbeda6602d6c5f67ec2b8f189a07ea0e3
tree68e69ffeb83271236ec36e5f4b2402ac160a583d
parenta26dc21309af68623b82b4e366cbbeb5a85ce65b
xfs: adapt the orphanage code to handle parent pointers

Adapt the orphanage's adoption code to update the child file's parent
pointers as part of the reparenting process.  Also ensure that the child
has an attr fork to receive the parent pointer update, since the runtime
code assumes one exists.

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