diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:54:55 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:58:56 -0700 |
commit | 1e58a8ccf2597c9259a8e71a2bffac5e11e12ea0 (patch) | |
tree | f359020c4ae7dbfb820fb2f15cd1e67bd4da4794 /fs/xfs/xfs_inode.h | |
parent | 34c9382c128270d0f4c8b36783b30f3c8085b2dd (diff) | |
download | linux-stable-1e58a8ccf2597c9259a8e71a2bffac5e11e12ea0.tar.gz linux-stable-1e58a8ccf2597c9259a8e71a2bffac5e11e12ea0.tar.bz2 linux-stable-1e58a8ccf2597c9259a8e71a2bffac5e11e12ea0.zip |
xfs: move orphan files to the orphanage
When we're repairing a directory structure or fixing the dotdot entry of
a subdirectory, it's possible that we won't ever find a parent for the
subdirectory. When this is the case, move it to the orphanage, aka
/lost+found.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 8157ae7f8e59..18bc3d7750a0 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h @@ -625,6 +625,7 @@ void xfs_end_io(struct work_struct *work); int xfs_ilock2_io_mmap(struct xfs_inode *ip1, struct xfs_inode *ip2); void xfs_iunlock2_io_mmap(struct xfs_inode *ip1, struct xfs_inode *ip2); void xfs_iunlock2_remapping(struct xfs_inode *ip1, struct xfs_inode *ip2); +void xfs_bumplink(struct xfs_trans *tp, struct xfs_inode *ip); static inline bool xfs_inode_unlinked_incomplete( |