xfs: scrub should only cross-reference with healthy btrees
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 16 Apr 2019 15:22:01 +0000 (08:22 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 16 Apr 2019 17:01:57 +0000 (10:01 -0700)
commit4fb7951fde64985bad80dcd2d721430ba584f125
tree0980b106ba6a0b08f9e6d865e478f197a2e9bb01
parent4860a05d2475d6f50de79f168beb893cc0066a6e
xfs: scrub should only cross-reference with healthy btrees

Skip cross-referencing with a btree if the health report tells us that
it's known to be bad.  This should reduce the dmesg spew considerably.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/common.c
fs/xfs/scrub/health.c
fs/xfs/scrub/health.h