summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2015-10-01 22:40:10 -0400
committerSteve French <smfrench@gmail.com>2015-10-31 23:44:24 -0400
commitca9e7a1c85594f61d7ffb414071e6cae82eae23a (patch)
treeb05226a06626ca1cc3a60025e68b807542bbe3b6 /fs
parent523e13455ec9ec4457a5a1d24ff7132949742b70 (diff)
Allow duplicate extents in SMB3 not just SMB3.1.1
Enable duplicate extents (cp --reflink) ioctl for SMB3.0 not just SMB3.1.1 since have verified that this works to Windows 2016 (REFS) and additional testing done at recent plugfest with SMB3.0 not just SMB3.1.1 This will also make it easier for Samba. Signed-off-by: Steve French <steve.french@primarydata.com> Reviewed-by: David Disseldorp <ddiss@suse.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/smb2ops.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 18da19f4f811..2f169eb79b4a 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -810,7 +810,6 @@ smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon,
810 cfile->fid.volatile_fid, cfile->pid, &eof, false); 810 cfile->fid.volatile_fid, cfile->pid, &eof, false);
811} 811}
812 812
813#ifdef CONFIG_CIFS_SMB311
814static int 813static int
815smb2_duplicate_extents(const unsigned int xid, 814smb2_duplicate_extents(const unsigned int xid,
816 struct cifsFileInfo *srcfile, 815 struct cifsFileInfo *srcfile,
@@ -854,8 +853,6 @@ smb2_duplicate_extents(const unsigned int xid,
854duplicate_extents_out: 853duplicate_extents_out:
855 return rc; 854 return rc;
856} 855}
857#endif /* CONFIG_CIFS_SMB311 */
858
859 856
860static int 857static int
861smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, 858smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
@@ -1703,6 +1700,7 @@ struct smb_version_operations smb30_operations = {
1703 .create_lease_buf = smb3_create_lease_buf, 1700 .create_lease_buf = smb3_create_lease_buf,
1704 .parse_lease_buf = smb3_parse_lease_buf, 1701 .parse_lease_buf = smb3_parse_lease_buf,
1705 .clone_range = smb2_clone_range, 1702 .clone_range = smb2_clone_range,
1703 .duplicate_extents = smb2_duplicate_extents,
1706 .validate_negotiate = smb3_validate_negotiate, 1704 .validate_negotiate = smb3_validate_negotiate,
1707 .wp_retry_size = smb2_wp_retry_size, 1705 .wp_retry_size = smb2_wp_retry_size,
1708 .dir_needs_close = smb2_dir_needs_close, 1706 .dir_needs_close = smb2_dir_needs_close,