summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-04-15 14:54:55 -0700
committerDarrick J. Wong <djwong@kernel.org>2024-04-15 14:58:56 -0700
commit1e58a8ccf2597c9259a8e71a2bffac5e11e12ea0 (patch)
treef359020c4ae7dbfb820fb2f15cd1e67bd4da4794 /fs/xfs/xfs_inode.c
parent34c9382c128270d0f4c8b36783b30f3c8085b2dd (diff)
downloadlinux-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.c')
-rw-r--r--fs/xfs/xfs_inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 09d643a9e997..803a64687014 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -914,10 +914,10 @@ xfs_droplink(
/*
* Increment the link count on an inode & log the change.
*/
-static void
+void
xfs_bumplink(
- xfs_trans_t *tp,
- xfs_inode_t *ip)
+ struct xfs_trans *tp,
+ struct xfs_inode *ip)
{
xfs_trans_ichgtime(tp, ip, XFS_ICHGTIME_CHG);