]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: don't assert fail on perag references on teardown
authorDave Chinner <dchinner@redhat.com>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
commit29c42f23d19c687d5da2b7ba4463abe6070058f0
tree320d34abd4879f7bdcc42008cba214a7289747f5
parent128ba9ce6eb8704c13520df8e6502112af63c387
xfs: don't assert fail on perag references on teardown

Source kernel commit: 5b55cbc2d72632e874e50d2e36bce608e55aaaea

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_ag.c