btrfs: remove the cross file system checks from remap
authorJosef Bacik <josef@toxicpanda.com>
Fri, 18 Feb 2022 14:38:13 +0000 (09:38 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 15:34:17 +0000 (16:34 +0100)
commit5fc8ece6b554e407c8ebf0f8a96385652c46a4f3
tree0a47eed4abf09f67bdae92a4f9ba776acf6706d6
parentd72927e01ed539ebf15f9673e048959389971c44
btrfs: remove the cross file system checks from remap

The sb check is already done in do_clone_file_range, and the mnt check
(which will hopefully go away in a subsequent patch) is done in
ioctl_file_clone().  Remove the check in our code and put an ASSERT() to
make sure it doesn't change underneath us.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/reflink.c