diff options
Diffstat (limited to 'fs/xfs/xfs_dquot_buf.c')
| -rw-r--r-- | fs/xfs/xfs_dquot_buf.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/xfs/xfs_dquot_buf.c b/fs/xfs/xfs_dquot_buf.c index d401457d2f25..610da8177737 100644 --- a/fs/xfs/xfs_dquot_buf.c +++ b/fs/xfs/xfs_dquot_buf.c | |||
| @@ -257,10 +257,13 @@ xfs_dquot_buf_read_verify( | |||
| 257 | { | 257 | { |
| 258 | struct xfs_mount *mp = bp->b_target->bt_mount; | 258 | struct xfs_mount *mp = bp->b_target->bt_mount; |
| 259 | 259 | ||
| 260 | if (!xfs_dquot_buf_verify_crc(mp, bp) || !xfs_dquot_buf_verify(mp, bp)) { | 260 | if (!xfs_dquot_buf_verify_crc(mp, bp)) |
| 261 | XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp, bp->b_addr); | 261 | xfs_buf_ioerror(bp, EFSBADCRC); |
| 262 | else if (!xfs_dquot_buf_verify(mp, bp)) | ||
| 262 | xfs_buf_ioerror(bp, EFSCORRUPTED); | 263 | xfs_buf_ioerror(bp, EFSCORRUPTED); |
| 263 | } | 264 | |
| 265 | if (bp->b_error) | ||
| 266 | xfs_verifier_error(bp); | ||
| 264 | } | 267 | } |
| 265 | 268 | ||
| 266 | /* | 269 | /* |
| @@ -275,8 +278,8 @@ xfs_dquot_buf_write_verify( | |||
| 275 | struct xfs_mount *mp = bp->b_target->bt_mount; | 278 | struct xfs_mount *mp = bp->b_target->bt_mount; |
| 276 | 279 | ||
| 277 | if (!xfs_dquot_buf_verify(mp, bp)) { | 280 | if (!xfs_dquot_buf_verify(mp, bp)) { |
| 278 | XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp, bp->b_addr); | ||
| 279 | xfs_buf_ioerror(bp, EFSCORRUPTED); | 281 | xfs_buf_ioerror(bp, EFSCORRUPTED); |
| 282 | xfs_verifier_error(bp); | ||
| 280 | return; | 283 | return; |
| 281 | } | 284 | } |
| 282 | } | 285 | } |
