summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-03-08 11:46:27 -0800
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 17:08:13 -0700
commit3c4f6a46433be4e5fd4e6ac1a531c7a9065eddfd (patch)
treecb52b833e9d46fbc66b1af23212174fd7bddaf25 /fs/xfs/scrub
parent31ed8b462e391b023fc0db9cdae5ec8caf6129c4 (diff)
xfs: bail out of scrub immediately if scan incomplete
If a scrubber cannot complete its check and signals an incomplete check, we must bail out immediately without updating health status, trying a repair, etc. because our scan is incomplete and we therefore do not know much more. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r--fs/xfs/scrub/scrub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c
index 60657ba743fb..3c893a2c9ac8 100644
--- a/fs/xfs/scrub/scrub.c
+++ b/fs/xfs/scrub/scrub.c
@@ -523,7 +523,7 @@ retry_op:
goto out;
sc.flags |= XCHK_TRY_HARDER;
goto retry_op;
- } else if (error)
+ } else if (error || (sm->sm_flags & XFS_SCRUB_OFLAG_INCOMPLETE))
goto out_teardown;
xchk_update_health(&sc);