xfs: don't assert fail on perag references on teardown
authorDave Chinner <dchinner@redhat.com>
Fri, 27 May 2022 00:21:04 +0000 (10:21 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 27 May 2022 00:21:04 +0000 (10:21 +1000)
commit5b55cbc2d72632e874e50d2e36bce608e55aaaea
tree880e2e510887f1f88e8fa673603e80b1bbf768c0
parent5672225e8f2a872a22b0cecedba7a6644af1fb84
xfs: don't assert fail on perag references on teardown

Not fatal, the assert is there to catch developer attention. I'm
seeing this occasionally during recoveryloop testing after a
shutdown, and I don't want this to stop an overnight recoveryloop
run as it is currently doing.

Convert the ASSERT to a XFS_IS_CORRUPT() check so it will dump a
corruption report into the log and cause a test failure that way,
but it won't stop the machine dead.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_ag.c