]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: report corruption only as a regular error
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 17 Nov 2019 18:36:52 +0000 (10:36 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 18 Nov 2019 16:40:44 +0000 (08:40 -0800)
commit4e8cf637ae11b548afdd216422ce457ceaeeea3c
tree103a04492185da1c34d9a30577360283d0ff2482
parentdcee41b466f13e62708090d2ffdb34bc7b25481e
xfs: report corruption only as a regular error

Redefine XFS_IS_CORRUPT so that it reports corruptions only via
xfs_corruption_report.  Since these are on-disk contents (and not checks
of internal state), we don't ever want to panic the kernel.  This also
amends the corruption report to recommend unmounting and running
xfs_repair.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_error.c
fs/xfs/xfs_linux.h