diff options
| author | 2024-04-22 09:48:22 -0700 | |
|---|---|---|
| committer | 2024-04-23 16:55:17 -0700 | |
| commit | 3f31406aef493b3f19020909d29974e28253f91c (patch) | |
| tree | c064e7aee0ce09ea1a410d0178d32fa091ac008d /fs/xfs/xfs_inode.c | |
| parent | xfs: report directory tree corruption in the health information (diff) | |
| download | linux-rng-3f31406aef493b3f19020909d29974e28253f91c.tar.xz linux-rng-3f31406aef493b3f19020909d29974e28253f91c.zip | |
xfs: fix corruptions in the directory tree
Repair corruptions in the directory tree itself. Cycles are broken by
removing an incoming parent->child link. Multiply-owned directories are
fixed by pruning the extra parent -> child links Disconnected subtrees
are reconnected to the lost and found.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
| -rw-r--r-- | fs/xfs/xfs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index ebe2ce9bd9ee..58fb7a5062e1 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -893,7 +893,7 @@ xfs_init_new_inode( * link count to go to zero, move the inode to AGI unlinked list so that it can * be freed when the last active reference goes away via xfs_inactive(). */ -static int /* error */ +int xfs_droplink( struct xfs_trans *tp, struct xfs_inode *ip) |
