xfs: add raw parent pointer apis to support repair
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:09 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:47:04 +0000 (07:47 -0700)
commit5769aa41ee34d4d1cc2b35376107b8e9694698f0
treed6b582d856a34bee398754ce1c27b000986f858c
parent086e934fe9c741f25a269ae74cc891eaf3f5c4e2
xfs: add raw parent pointer apis to support repair

Add a couple of utility functions to set or remove parent pointers from
a file.  These functions will be used by repair code, hence they skip
the xattr logging that regular parent pointer updates use.

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