]> git.itanic.dy.fi Git - linux-stable/commit
xfs: replace -EIO with -EFSCORRUPTED for corrupt metadata
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Sep 2022 12:56:40 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:04:09 +0000 (11:04 +0200)
commitc494dbca992831d8fccf2bfc6756cc145b2d11ed
treee353a670eec609d9489279a81982a350b0c8ae37
parentbb7eb3ca4b3b0d2c7872cf1a41c30f5e5bd65df0
xfs: replace -EIO with -EFSCORRUPTED for corrupt metadata

commit c2414ad6e66ab96b867309454498f7fb29b7e855 upstream.

There are a few places where we return -EIO instead of -EFSCORRUPTED
when we find corrupt metadata.  Fix those places.

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