]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add a new xfs_sb_version_has_v3inode helper
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Apr 2023 04:26:13 +0000 (09:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:07:37 +0000 (12:07 +0200)
commitd9fe6b55fa1d40a5ab27a9d7123d7d50d4fffbcd
tree94a93bf0bf2646130b9e37a026931db3f60a946f
parent860519164f1399240262a4569f79e6fa74f34cde
xfs: add a new xfs_sb_version_has_v3inode helper

commit 2ea1d181b32d52993cbc29ca8d6c659fa720ee9e upstream.

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: Chandan Babu R <chandan.babu@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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