xfs: use a union for i_cowextsize and i_flushiter
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Mar 2021 18:11:43 +0000 (11:11 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 7 Apr 2021 21:37:05 +0000 (14:37 -0700)
commitee7b83fd365e32beaa405d60b8c42f42ec5f42c2
treeaa696b58d9c472abd855f6ed445fd3d3fd21c921
parentb231b1221b39bdf7ec4e45b05656bcba7d6a2153
xfs: use a union for i_cowextsize and i_flushiter

The i_cowextsize field is only used for v3 inodes, and the i_flushiter
field is only used for v1/v2 inodes.  Use a union to pack the inode a
littler better after adding a few missing guards around their usage.

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/libxfs/xfs_inode_buf.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_ioctl.c