diff options
Diffstat (limited to 'fs/xfs/xfs_inode_buf.c')
-rw-r--r-- | fs/xfs/xfs_inode_buf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode_buf.c b/fs/xfs/xfs_inode_buf.c index 4fc9f39dd89e..24e993996bdc 100644 --- a/fs/xfs/xfs_inode_buf.c +++ b/fs/xfs/xfs_inode_buf.c | |||
@@ -102,8 +102,7 @@ xfs_inode_buf_verify( | |||
102 | } | 102 | } |
103 | 103 | ||
104 | xfs_buf_ioerror(bp, EFSCORRUPTED); | 104 | xfs_buf_ioerror(bp, EFSCORRUPTED); |
105 | XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_HIGH, | 105 | xfs_verifier_error(bp); |
106 | mp, dip); | ||
107 | #ifdef DEBUG | 106 | #ifdef DEBUG |
108 | xfs_alert(mp, | 107 | xfs_alert(mp, |
109 | "bad inode magic/vsn daddr %lld #%d (magic=%x)", | 108 | "bad inode magic/vsn daddr %lld #%d (magic=%x)", |
@@ -306,7 +305,7 @@ xfs_dinode_verify( | |||
306 | if (!xfs_sb_version_hascrc(&mp->m_sb)) | 305 | if (!xfs_sb_version_hascrc(&mp->m_sb)) |
307 | return false; | 306 | return false; |
308 | if (!xfs_verify_cksum((char *)dip, mp->m_sb.sb_inodesize, | 307 | if (!xfs_verify_cksum((char *)dip, mp->m_sb.sb_inodesize, |
309 | offsetof(struct xfs_dinode, di_crc))) | 308 | XFS_DINODE_CRC_OFF)) |
310 | return false; | 309 | return false; |
311 | if (be64_to_cpu(dip->di_ino) != ip->i_ino) | 310 | if (be64_to_cpu(dip->di_ino) != ip->i_ino) |
312 | return false; | 311 | return false; |
@@ -327,7 +326,7 @@ xfs_dinode_calc_crc( | |||
327 | 326 | ||
328 | ASSERT(xfs_sb_version_hascrc(&mp->m_sb)); | 327 | ASSERT(xfs_sb_version_hascrc(&mp->m_sb)); |
329 | crc = xfs_start_cksum((char *)dip, mp->m_sb.sb_inodesize, | 328 | crc = xfs_start_cksum((char *)dip, mp->m_sb.sb_inodesize, |
330 | offsetof(struct xfs_dinode, di_crc)); | 329 | XFS_DINODE_CRC_OFF); |
331 | dip->di_crc = xfs_end_cksum(crc); | 330 | dip->di_crc = xfs_end_cksum(crc); |
332 | } | 331 | } |
333 | 332 | ||