aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2018-03-23 13:22:54 -0400
committerDarrick J. Wong <darrick.wong@oracle.com>2018-03-23 21:05:09 -0400
commitfa4493f0d9b3ac8f36743f1a26e2318b449ee4c8 (patch)
tree34c65ff4015a7c29b824f7bd2eacb7343e015010
parentee457001ed6c6f31ddad69c24c1da8f377d8472d (diff)
xfs: remove dead inode version setting code
We can only get into the branch if CRCs are enabled, so there's no need to check inside the branch for CRCs being enabled.... Signed-Off-By: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
-rw-r--r--fs/xfs/libxfs/xfs_inode_buf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_buf.c b/fs/xfs/libxfs/xfs_inode_buf.c
index f0cfcd79ac39..ef68b1de006a 100644
--- a/fs/xfs/libxfs/xfs_inode_buf.c
+++ b/fs/xfs/libxfs/xfs_inode_buf.c
@@ -572,10 +572,7 @@ xfs_iread(
572 /* initialise the on-disk inode core */ 572 /* initialise the on-disk inode core */
573 memset(&ip->i_d, 0, sizeof(ip->i_d)); 573 memset(&ip->i_d, 0, sizeof(ip->i_d));
574 VFS_I(ip)->i_generation = prandom_u32(); 574 VFS_I(ip)->i_generation = prandom_u32();
575 if (xfs_sb_version_hascrc(&mp->m_sb)) 575 ip->i_d.di_version = 3;
576 ip->i_d.di_version = 3;
577 else
578 ip->i_d.di_version = 2;
579 return 0; 576 return 0;
580 } 577 }
581 578