Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa4493f0 authored by Dave Chinner's avatar Dave Chinner Committed by Darrick J. Wong
Browse files

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: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent ee457001
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -572,10 +572,7 @@ xfs_iread(
		/* initialise the on-disk inode core */
		memset(&ip->i_d, 0, sizeof(ip->i_d));
		VFS_I(ip)->i_generation = prandom_u32();
		if (xfs_sb_version_hascrc(&mp->m_sb))
		ip->i_d.di_version = 3;
		else
			ip->i_d.di_version = 2;
		return 0;
	}