OSDN Git Service

xfs: bmap debugging should never panic the system
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 4 May 2018 22:31:21 +0000 (15:31 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 May 2018 17:04:02 +0000 (10:04 -0700)
commitcec572561a748396c783c1ea91a289816d3c4f18
tree7ad26b9efe9c1835745d8e3fdf22d1738506a233
parent8804630e1eeba06194344b9eeffa379f4ed168c7
xfs: bmap debugging should never panic the system

Don't panic() the system if the bmap records are garbage, just call
ASSERT which gives us the same backtrace but enables developers to
control if the system goes down or not.  This makes debugging with
generic/388 much easier because it won't reboot the machine midway
through a run just because btree_read_bufl returns EIO when the fs has
already shut down.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_bmap.c