diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-03-22 17:51:52 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-03-26 00:47:49 +0100 |
commit | 7716ee54cb88e1b76e6a9b61416e286b8150f61d (patch) | |
tree | 804d3e1684fcd39123e337ec4cd6e765e8456e3b /fs/xfs/scrub | |
parent | xfs: fix dquot scrub loop cancellation (diff) | |
download | linux-7716ee54cb88e1b76e6a9b61416e286b8150f61d.tar.xz linux-7716ee54cb88e1b76e6a9b61416e286b8150f61d.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c index 8ebf35b115ce..47c68c72bcac 100644 --- a/fs/xfs/scrub/scrub.c +++ b/fs/xfs/scrub/scrub.c @@ -517,7 +517,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); |