diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-10-29 00:12:34 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-10-29 17:50:11 +0100 |
commit | c2414ad6e66ab96b867309454498f7fb29b7e855 (patch) | |
tree | a558a787f7207dd5aa09ee3512b89f9b28007518 /fs/xfs/xfs_dquot.c | |
parent | xfs: namecheck directory entry names before listing them (diff) | |
download | linux-c2414ad6e66ab96b867309454498f7fb29b7e855.tar.xz linux-c2414ad6e66ab96b867309454498f7fb29b7e855.zip |
xfs: replace -EIO with -EFSCORRUPTED for corrupt metadata
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>
Diffstat (limited to 'fs/xfs/xfs_dquot.c')
-rw-r--r-- | fs/xfs/xfs_dquot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c index b924dbd63a7d..bcd4247b5014 100644 --- a/fs/xfs/xfs_dquot.c +++ b/fs/xfs/xfs_dquot.c @@ -1126,7 +1126,7 @@ xfs_qm_dqflush( xfs_buf_relse(bp); xfs_dqfunlock(dqp); xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE); - return -EIO; + return -EFSCORRUPTED; } /* This is the only portion of data that needs to persist */ |