summaryrefslogtreecommitdiff
path: root/Documentation/filesystems/xfs
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-04-16 00:54:56 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-04-16 00:58:57 +0300
commite6c9e75fbe792e1fb3bc7e7efce5c6bb015023c5 (patch)
treed96b67161ac0bb4e5d3796de6a9d504e3dfe8714 /Documentation/filesystems/xfs
parent1e58a8ccf2597c9259a8e71a2bffac5e11e12ea0 (diff)
downloadlinux-e6c9e75fbe792e1fb3bc7e7efce5c6bb015023c5.tar.xz
xfs: move files to orphanage instead of letting nlinks drop to zero
If we encounter an inode with a nonzero link count but zero observed links, move it to the orphanage. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'Documentation/filesystems/xfs')
-rw-r--r--Documentation/filesystems/xfs/xfs-online-fsck-design.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/filesystems/xfs/xfs-online-fsck-design.rst b/Documentation/filesystems/xfs/xfs-online-fsck-design.rst
index 37dddaaeda50..74a8e42c74bd 100644
--- a/Documentation/filesystems/xfs/xfs-online-fsck-design.rst
+++ b/Documentation/filesystems/xfs/xfs-online-fsck-design.rst
@@ -4789,7 +4789,8 @@ Orphaned files are adopted by the orphanage as follows:
cache.
6. Call ``xrep_adoption_finish`` to commit any filesystem updates, release the
- orphanage ILOCK, and clean the scrub transaction.
+ orphanage ILOCK, and clean the scrub transaction. Call
+ ``xrep_adoption_commit`` to commit the updates and the scrub transaction.
7. If a runtime error happens, call ``xrep_adoption_cancel`` to release all
resources.