Commit 59cd49d5 authored by Dave Chinner's avatar Dave Chinner Committed by Long Li
Browse files

xfs: kill xfs_sb_version_has_v3inode()

mainline inclusion
from mainline-v5.14-rc4
commit cf28e17c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4KIAO
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cf28e17c9186c83e7e8702f844bc40b6e782ce6c



--------------------------------

All callers to xfs_dinode_good_version() and XFS_DINODE_SIZE() in
both the kernel and userspace have a xfs_mount structure available
which means they can use mount features checks instead looking
directly are the superblock.

Convert these functions to take a mount and use a xfs_has_v3inodes()
check and move it out of the libxfs/xfs_format.h file as it really
doesn't have anything to do with the definition of the on-disk
format.

Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>

Conflicts:
	fs/xfs/libxfs/xfs_format.h
	fs/xfs/libxfs/xfs_inode_buf.h

Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
parent 5c55caf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment