diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2021-06-18 10:28:00 +0900 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-06-22 16:11:25 +0900 |
commit | f8524776f1bbf2895de757438b41915a9b3d9bbc (patch) | |
tree | 76b1e3ce1befb5e4245fc02c35d6ef6abf9e9f6f /fs/cifsd/smb2pdu.c | |
parent | afa8f016c5a527bd004042ea47ca8b8007e4185f (diff) | |
download | lwn-f8524776f1bbf2895de757438b41915a9b3d9bbc.tar.gz lwn-f8524776f1bbf2895de757438b41915a9b3d9bbc.zip |
ksmbd: remove ksmbd_vfs_copy_file_range
vfs_copy_file_range and cifs client already does this type of fallback,
so this is dead code.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifsd/smb2pdu.c')
-rw-r--r-- | fs/cifsd/smb2pdu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifsd/smb2pdu.c b/fs/cifsd/smb2pdu.c index 345c4c75da9a..2df8217c7395 100644 --- a/fs/cifsd/smb2pdu.c +++ b/fs/cifsd/smb2pdu.c @@ -7437,8 +7437,8 @@ int smb2_ioctl(struct ksmbd_work *work) ret = -EOPNOTSUPP; goto dup_ext_out; } else if (cloned != length) { - cloned = ksmbd_vfs_copy_file_range(fp_in->filp, src_off, - fp_out->filp, dst_off, length); + cloned = vfs_copy_file_range(fp_in->filp, src_off, + fp_out->filp, dst_off, length, 0); if (cloned != length) { if (cloned < 0) ret = cloned; |