xfs: don't clear the "dinode core" in xfs_inode_alloc
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Mar 2021 18:11:39 +0000 (11:11 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 7 Apr 2021 21:37:03 +0000 (14:37 -0700)
commit7e2a8af528396d275962b33af9e5350da10c01f3
tree6af18476fcf1d37956b69cd7b6e875d5311b33fe
parent9b3beb028ff5bed99473021d1a7de8747665ac32
xfs: don't clear the "dinode core" in xfs_inode_alloc

The xfs_icdinode structure just contains a random mix of inode field,
which are all read from the on-disk inode and mostly not looked at
before reading the inode or initializing a new inode cluster.  The
only exceptions are the forkoff and blocks field, which are used
in sanity checks for freshly allocated inodes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_icache.c