xfs: consistently initialize di_flags2
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Mar 2021 18:11:37 +0000 (11:11 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 7 Apr 2021 21:37:02 +0000 (14:37 -0700)
commit4cb6f2e8c2c78c28941c56f49f2d9de44705b211
tree99511e5a0a7764dc31e98a65e68895c06f9b213f
parentaf9dcddef662e1437a63c2decb6e1e2efb7d81ea
xfs: consistently initialize di_flags2

Make sure di_flags2 is always initialized.  We currently get this implicitly
by clearing the dinode core on allocating the in-core inode, but that is
about to go away.

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
fs/xfs/xfs_inode.c