aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode_buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_inode_buf.c')
-rw-r--r--fs/xfs/xfs_inode_buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode_buf.c b/fs/xfs/xfs_inode_buf.c
index 4fc9f39dd89e..606b43a48724 100644
--- a/fs/xfs/xfs_inode_buf.c
+++ b/fs/xfs/xfs_inode_buf.c
@@ -306,7 +306,7 @@ xfs_dinode_verify(
306 if (!xfs_sb_version_hascrc(&mp->m_sb)) 306 if (!xfs_sb_version_hascrc(&mp->m_sb))
307 return false; 307 return false;
308 if (!xfs_verify_cksum((char *)dip, mp->m_sb.sb_inodesize, 308 if (!xfs_verify_cksum((char *)dip, mp->m_sb.sb_inodesize,
309 offsetof(struct xfs_dinode, di_crc))) 309 XFS_DINODE_CRC_OFF))
310 return false; 310 return false;
311 if (be64_to_cpu(dip->di_ino) != ip->i_ino) 311 if (be64_to_cpu(dip->di_ino) != ip->i_ino)
312 return false; 312 return false;
@@ -327,7 +327,7 @@ xfs_dinode_calc_crc(
327 327
328 ASSERT(xfs_sb_version_hascrc(&mp->m_sb)); 328 ASSERT(xfs_sb_version_hascrc(&mp->m_sb));
329 crc = xfs_start_cksum((char *)dip, mp->m_sb.sb_inodesize, 329 crc = xfs_start_cksum((char *)dip, mp->m_sb.sb_inodesize,
330 offsetof(struct xfs_dinode, di_crc)); 330 XFS_DINODE_CRC_OFF);
331 dip->di_crc = xfs_end_cksum(crc); 331 dip->di_crc = xfs_end_cksum(crc);
332} 332}
333 333