]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add a new xfs_sb_version_has_v3inode helper
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Mar 2020 15:15:09 +0000 (08:15 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 19 Mar 2020 15:47:34 +0000 (08:47 -0700)
commit599cc81f2a000e8b739efb7720f76a48b4003a5d
treec884c184edff74b23ab184f559f4cdb8e5508aef
parent00f7bc4c09d9f4f3c4e27a7e5d9bd9fe3c0ab465
xfs: add a new xfs_sb_version_has_v3inode helper

Add a new wrapper to check if a file system supports the v3 inode format
with a larger dinode core.  Previously we used xfs_sb_version_hascrc for
that, which is technically correct but a little confusing to read.

Also move xfs_dinode_good_version next to xfs_sb_version_has_v3inode
so that we have one place that documents the superblock version to
inode version relationship.

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_format.h
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/libxfs/xfs_inode_buf.h
fs/xfs/libxfs/xfs_trans_resv.c
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_log_recover.c