diff options
author | 2020-01-08 10:03:53 +0000 | |
---|---|---|
committer | 2020-01-27 16:53:40 +0100 | |
commit | 78beb0ff2feceb1d7568333f93195e1a4d95a49a (patch) | |
tree | 95c0d293b1403ac31c1adf75d95a8ea02fb985d1 /fs/ceph/super.h | |
parent | ceph: close holes in structs ceph_mds_session and ceph_mds_request (diff) | |
download | linux-78beb0ff2feceb1d7568333f93195e1a4d95a49a.tar.gz linux-78beb0ff2feceb1d7568333f93195e1a4d95a49a.tar.bz2 linux-78beb0ff2feceb1d7568333f93195e1a4d95a49a.zip |
ceph: use copy-from2 op in copy_file_range
Instead of using the copy-from operation, switch copy_file_range to the
new copy-from2 operation, which allows to send the truncate_seq and
truncate_size parameters.
If an OSD does not support the copy-from2 operation it will return
-EOPNOTSUPP. In that case, the kernel client will stop trying to do
remote object copies for this fs client and will always use the generic
VFS copy_file_range.
Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | fs/ceph/super.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index 3bf1a01cd536..1e456a9011bb 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -106,6 +106,8 @@ struct ceph_fs_client { unsigned long last_auto_reconnect; bool blacklisted; + bool have_copy_from2; + u32 filp_gen; loff_t max_file_size; |