diff options
author | 2014-03-13 19:13:05 +1100 | |
---|---|---|
committer | 2014-03-13 19:13:05 +1100 | |
commit | 5f44e4c185ec5a4a438841cbd4983d0c4a106a4a (patch) | |
tree | 894419c679250407eb7a76af9d1525c47226a085 /fs/xfs/xfs_symlink.c | |
parent | Merge branch 'xfs-verifier-cleanup' into for-next (diff) | |
parent | xfs: inode log reservations are still too small (diff) | |
download | linux-dev-5f44e4c185ec5a4a438841cbd4983d0c4a106a4a.tar.xz linux-dev-5f44e4c185ec5a4a438841cbd4983d0c4a106a4a.zip |
Merge branch 'xfs-bug-fixes-for-3.15-2' into for-next
Diffstat (limited to 'fs/xfs/xfs_symlink.c')
-rw-r--r-- | fs/xfs/xfs_symlink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_symlink.c b/fs/xfs/xfs_symlink.c index 14e58f2c96bd..5fda18919d3b 100644 --- a/fs/xfs/xfs_symlink.c +++ b/fs/xfs/xfs_symlink.c @@ -80,6 +80,10 @@ xfs_readlink_bmap( if (error) { xfs_buf_ioerror_alert(bp, __func__); xfs_buf_relse(bp); + + /* bad CRC means corrupted metadata */ + if (error == EFSBADCRC) + error = EFSCORRUPTED; goto out; } byte_cnt = XFS_SYMLINK_BUF_SPACE(mp, byte_cnt); |