summaryrefslogtreecommitdiff
path: root/fs/smb/client/smb2ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/smb/client/smb2ops.c')
-rw-r--r--fs/smb/client/smb2ops.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/smb/client/smb2ops.c b/fs/smb/client/smb2ops.c
index 990e8c89b55d..f6140bf1641e 100644
--- a/fs/smb/client/smb2ops.c
+++ b/fs/smb/client/smb2ops.c
@@ -1979,11 +1979,8 @@ int smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon,
cfile->fid.volatile_fid, cfile->pid, size);
}
-static int
-smb2_duplicate_extents(const unsigned int xid,
- struct cifsFileInfo *srcfile,
- struct cifsFileInfo *trgtfile, u64 src_off,
- u64 len, u64 dest_off)
+int smb3_duplicate_extents(const unsigned int xid, struct cifsFileInfo *srcfile,
+ struct cifsFileInfo *trgtfile, u64 src_off, u64 len, u64 dest_off)
{
int rc;
unsigned int ret_data_len;
@@ -5015,7 +5012,6 @@ struct smb_version_operations smb30_operations = {
.queryfs = smb2_queryfs,
.generate_signingkey = generate_smb30signingkey,
.calc_signature = smb3_calc_signature,
- .duplicate_extents = smb2_duplicate_extents,
.fallocate = smb3_fallocate,
.init_transform_rq = smb3_init_transform_rq,
.is_transform_hdr = smb3_is_transform_hdr,
@@ -5033,7 +5029,6 @@ struct smb_version_operations smb311_operations = {
.queryfs = smb311_queryfs,
.generate_signingkey = generate_smb311signingkey,
.calc_signature = smb3_calc_signature,
- .duplicate_extents = smb2_duplicate_extents,
.fallocate = smb3_fallocate,
.init_transform_rq = smb3_init_transform_rq,
.is_transform_hdr = smb3_is_transform_hdr,