public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs: remove the cross file system checks from remap
@ 2022-02-16 20:06 Josef Bacik
  2022-02-16 21:37 ` David Sterba
  2022-02-18 13:15 ` Nikolay Borisov
  0 siblings, 2 replies; 4+ messages in thread
From: Josef Bacik @ 2022-02-16 20:06 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

This is handled in the generic VFS helper, we do not need to duplicate
this inside of btrfs.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
 fs/btrfs/reflink.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/btrfs/reflink.c b/fs/btrfs/reflink.c
index a3930da4eb3f..4425030e09cb 100644
--- a/fs/btrfs/reflink.c
+++ b/fs/btrfs/reflink.c
@@ -771,10 +771,6 @@ static int btrfs_remap_file_range_prep(struct file *file_in, loff_t pos_in,
 
 		if (btrfs_root_readonly(root_out))
 			return -EROFS;
-
-		if (file_in->f_path.mnt != file_out->f_path.mnt ||
-		    inode_in->i_sb != inode_out->i_sb)
-			return -EXDEV;
 	}
 
 	/* Don't make the dst file partly checksummed */
-- 
2.26.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-18 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-16 20:06 [PATCH] btrfs: remove the cross file system checks from remap Josef Bacik
2022-02-16 21:37 ` David Sterba
2022-02-18 13:15 ` Nikolay Borisov
2022-02-18 13:22   ` Nikolay Borisov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox