]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: add a new xfs_sb_version_has_v3inode helper
authorChristoph Hellwig <hch@lst.de>
Fri, 1 May 2020 21:37:10 +0000 (17:37 -0400)
committerEric Sandeen <sandeen@redhat.com>
Fri, 1 May 2020 21:37:10 +0000 (17:37 -0400)
commitdb84c7e81fba8df1170f732b63fc51867fe4aa9e
tree4d9c50305f83098b296700b050a4a18105241ff9
parent16820c71119ba98f22e9b20954936cbb61f9a81e
xfs: add a new xfs_sb_version_has_v3inode helper

Source kernel commit: b81b79f4eda2ea98ae5695c0b6eb384c8d90b74d

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/check.c
libxfs/xfs_format.h
libxfs/xfs_ialloc.c
libxfs/xfs_inode_buf.c
libxfs/xfs_inode_buf.h
libxfs/xfs_trans_resv.c
repair/dinode.c
repair/prefetch.c