ceph: allow object copies across different filesystems in the same cluster
authorLuis Henriques <lhenriques@suse.com>
Mon, 9 Sep 2019 15:48:54 +0000 (16:48 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:25 +0000 (12:06 +0200)
commit6fd4e634835208ddb331234bfa51d75396a5c42c
treee264a083434b95a0d7738516b8e71598a765c3ed
parent48f930ea6de6f48fd20be54ec4716c545751a6d9
ceph: allow object copies across different filesystems in the same cluster

OSDs are able to perform object copies across different pools.  Thus,
there's no need to prevent copy_file_range from doing remote copies if the
source and destination superblocks are different.  Only return -EXDEV if
they have different fsid (the cluster ID).

Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c