mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
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>
This commit is contained in:
parent
05237032fd
commit
7716ee54cb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue