Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fbc2c65 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Dave Chinner
Browse files

xfs: remove the same fs check from xfs_file_share_range



The VFS already does the check, and the placement of this duplicate
is in the way of the following locking rework.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent 8cdcc810
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -965,9 +965,6 @@ xfs_file_share_range(
	    IS_SWAPFILE(inode_out))
	    IS_SWAPFILE(inode_out))
		return -ETXTBSY;
		return -ETXTBSY;


	/* Reflink only works within this filesystem. */
	if (inode_in->i_sb != inode_out->i_sb)
		return -EXDEV;
	same_inode = (inode_in->i_ino == inode_out->i_ino);
	same_inode = (inode_in->i_ino == inode_out->i_ino);


	/* Don't reflink dirs, pipes, sockets... */
	/* Don't reflink dirs, pipes, sockets... */