Commit 5e28aafe authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

xfs: simplify a check in xfs_ioctl_setattr_check_cowextsize

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Reviewed-by: default avatarChandan Rajendra <chandanrlinux@gmail.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent b3d1d375
...@@ -1473,8 +1473,7 @@ xfs_ioctl_setattr_check_cowextsize( ...@@ -1473,8 +1473,7 @@ xfs_ioctl_setattr_check_cowextsize(
if (!(fa->fsx_xflags & FS_XFLAG_COWEXTSIZE)) if (!(fa->fsx_xflags & FS_XFLAG_COWEXTSIZE))
return 0; return 0;
if (!xfs_sb_version_hasreflink(&ip->i_mount->m_sb) || if (!xfs_sb_version_hasreflink(&ip->i_mount->m_sb))
ip->i_d.di_version != 3)
return -EINVAL; return -EINVAL;
if (fa->fsx_cowextsize == 0) if (fa->fsx_cowextsize == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment