ceph: allow copy_file_range when src and dst inode are same
authorJeff Layton <jlayton@kernel.org>
Wed, 24 Jul 2019 11:59:51 +0000 (07:59 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:23 +0000 (12:06 +0200)
commite1e44602021358336fb524affe53ce3c09b34beb
tree44893957884d6e7b30d364c1cb28c4c06eabde1f
parent750670341a24cb714e624e0fd7da30900ad93752
ceph: allow copy_file_range when src and dst inode are same

There is no reason to prevent this. The OSD should be able to handle
this as long as the objects are different, and the existing code falls
back when the offset into the object is different.

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