summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/trace.c
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 /fs/xfs/scrub/trace.c
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 'fs/xfs/scrub/trace.c')
-rw-r--r--fs/xfs/scrub/trace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/scrub/trace.c b/fs/xfs/scrub/trace.c
index 3dd281d6d185..b2ce7b22cad3 100644
--- a/fs/xfs/scrub/trace.c
+++ b/fs/xfs/scrub/trace.c
@@ -24,6 +24,7 @@
#include "scrub/xfarray.h"
#include "scrub/quota.h"
#include "scrub/iscan.h"
+#include "scrub/orphanage.h"
#include "scrub/nlinks.h"
#include "scrub/fscounters.h"