]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: simplify a check in xfs_ioctl_setattr_check_cowextsize
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Apr 2023 04:26:16 +0000 (09:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:07:37 +0000 (12:07 +0200)
commitcdfd5c0a0594b87a5c59039c8acdf685dbd724c0
tree297b17bac5742661849c50dda1677e00bc3dd0dc
parent79c116110abb53a9e445da8bb9d69d6ce3048dae
xfs: simplify a check in xfs_ioctl_setattr_check_cowextsize

commit e8f49ad06cd59e40a470fbd2a00f1918a34ed126 upstream.

Only v5 file systems can have the reflink feature, and those will
always use the large dinode format.  Remove the extra check for the
inode version.

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/xfs_ioctl.c