mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
This commit is contained in:
parent
8cdcc8102c
commit
4fbc2c6525
1 changed files with 0 additions and 3 deletions
|
|
@ -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... */
|
||||
|
|
|
|||
Loading…
Reference in a new issue