From: Christoph Hellwig Date: Thu, 20 Oct 2016 04:48:54 +0000 (+1100) Subject: xfs: remove the same fs check from xfs_file_share_range X-Git-Tag: v4.9-rc3~32^2~16 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=4fbc2c65255f77b315a4ee3ccac397d677a35737;p=cascardo%2Flinux.git 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: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Dave Chinner --- diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 0dc9971d3c84..194f8f396e4d 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -965,9 +965,6 @@ xfs_file_share_range( IS_SWAPFILE(inode_out)) 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); /* Don't reflink dirs, pipes, sockets... */