summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/quotacheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/scrub/quotacheck.c')
-rw-r--r--fs/xfs/scrub/quotacheck.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/scrub/quotacheck.c b/fs/xfs/scrub/quotacheck.c
index ed3aa84f093b..1717e0f30cdd 100644
--- a/fs/xfs/scrub/quotacheck.c
+++ b/fs/xfs/scrub/quotacheck.c
@@ -511,6 +511,13 @@ xqcheck_collect_counts(
retries = 20;
break;
case -ENOENT:
+ /*¬
+ * It's possible that this inode has lost all of its
+ * links but hasn't yet been inactivated. Try to push
+ * it towards inactivation.
+ */
+ xfs_inodegc_flush_ino(xqc->sc->mp, ino);
+ /* fall through */
case -EINVAL:
/*
* We thought the inode was allocated, but iget failed