]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7e59465f497846b6501037db9faae5707af9013
treeaa696b58d9c472abd855f6ed445fd3d3fd21c921
parentf12ff8e3657cbad6996ec375fd184b6a637c3925
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