From: Darrick J. Wong Date: Mon, 22 Mar 2021 16:51:52 +0000 (-0700) Subject: xfs: bail out of scrub immediately if scan incomplete X-Git-Tag: v5.15~1167^2~84 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7716ee54cb88e1b76e6a9b61416e286b8150f61d;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Christoph Hellwig --- diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c index 8ebf35b..47c68c72 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);