]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: convert EIO to EFSCORRUPTED when log contents are invalid
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Sep 2022 12:56:46 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:04:10 +0000 (11:04 +0200)
commitbf3b41e2f4b031db40fe46033253d7d0062f4c6c
tree2e983a5b1866b983d11afc20afa8e5d7f61201a7
parentb3e652efba63dcbc2f1c827661fdd922a4b6957d
xfs: convert EIO to EFSCORRUPTED when log contents are invalid

commit b217f5067b58fa5acb06d21b93d69ee20d997fd4 upstream.

Convert EIO to EFSCORRUPTED in the logging code when we can determine
that the log contents are invalid.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_refcount_item.c
fs/xfs/xfs_rmap_item.c