]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: report corruption only as a regular error
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 12 Apr 2023 04:26:20 +0000 (09:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:07:38 +0000 (12:07 +0200)
commiteff63200f8aa240532dd9a004962c3b08dccf9c1
tree879f6f81f357ea849c8060edce4db09b06c31e18
parent910298c0406ba4d08837c58ce72fc7b0950bd1bd
xfs: report corruption only as a regular error

commit 4e8cf637ae11b548afdd216422ce457ceaeeea3c uptream.

[ Slightly modify fs/xfs/xfs_linux.h to resolve merge conflicts ]

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>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_error.c
fs/xfs/xfs_linux.h