xfs: skip fscounters comparisons when the scan is incomplete
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Nov 2022 01:03:19 +0000 (17:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 16 Nov 2022 23:25:03 +0000 (15:25 -0800)
commit11f97e684583469fc342a561387cc44fac4f9b1f
treeae99e2b895d870abfa117cf573f2189c5eb632a2
parent5f369dc5b4eb2becbdfd08924dcaf00e391f4ea1
xfs: skip fscounters comparisons when the scan is incomplete

If any part of the per-AG summary counter scan loop aborts without
collecting all of the data we need, the scrubber's observation data will
be invalid.  Set the incomplete flag so that we abort the scrub without
reporting false corruptions.  Document the data dependency here too.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/fscounters.c