From: Christoph Hellwig Date: Wed, 22 Jan 2020 16:29:44 +0000 (-0500) Subject: xfs: don't reset the "inode core" in xfs_iread X-Git-Tag: v5.5.0-rc0~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7773baf31e8ac7ebdf71672acf43d5acd77100f6;p=thirdparty%2Fxfsprogs-dev.git xfs: don't reset the "inode core" in xfs_iread Source kernel commit: 048a35d2f0b4cfeb24cbb7fe59e78124d8e7dc73 We have the exact same memset in xfs_inode_alloc, which is always called just before xfs_iread. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c index 776a116f0..4c90e1980 100644 --- a/libxfs/xfs_inode_buf.c +++ b/libxfs/xfs_inode_buf.c @@ -627,8 +627,6 @@ xfs_iread( if ((iget_flags & XFS_IGET_CREATE) && xfs_sb_version_hascrc(&mp->m_sb) && !(mp->m_flags & XFS_MOUNT_IKEEP)) { - /* initialise the on-disk inode core */ - memset(&ip->i_d, 0, sizeof(ip->i_d)); VFS_I(ip)->i_generation = prandom_u32(); ip->i_d.di_version = 3; return 0;