diff options
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 83088d96e6c4..45a85ff84da1 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -1912,6 +1912,15 @@ xlog_recover_do_inode_buffer( | |||
1912 | buffer_nextp = (xfs_agino_t *)xfs_buf_offset(bp, | 1912 | buffer_nextp = (xfs_agino_t *)xfs_buf_offset(bp, |
1913 | next_unlinked_offset); | 1913 | next_unlinked_offset); |
1914 | *buffer_nextp = *logged_nextp; | 1914 | *buffer_nextp = *logged_nextp; |
1915 | |||
1916 | /* | ||
1917 | * If necessary, recalculate the CRC in the on-disk inode. We | ||
1918 | * have to leave the inode in a consistent state for whoever | ||
1919 | * reads it next.... | ||
1920 | */ | ||
1921 | xfs_dinode_calc_crc(mp, (struct xfs_dinode *) | ||
1922 | xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize)); | ||
1923 | |||
1915 | } | 1924 | } |
1916 | 1925 | ||
1917 | return 0; | 1926 | return 0; |