xfs: only check the superblock version for dinode size calculation
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Mar 2020 15:15:10 +0000 (08:15 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 19 Mar 2020 15:48:47 +0000 (08:48 -0700)
commite9e2eae89ddb658ea332295153fdca78c12c1e0d
tree025550d66e81ea683b374a555f473b8ae8df8033
parentb81b79f4eda2ea98ae5695c0b6eb384c8d90b74d
xfs: only check the superblock version for dinode size calculation

The size of the dinode structure is only dependent on the file system
version, so instead of checking the individual inode version just use
the newly added xfs_sb_version_has_large_dinode helper, and simplify
various calling conventions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_symlink.c