CIFS: Fix SMB2/SMB3 Copy offload support (refcopy) for large files
authorSteve French <smfrench@gmail.com>
Sun, 17 Nov 2013 00:05:28 +0000 (18:05 -0600)
committerSteve French <smfrench@gmail.com>
Mon, 18 Nov 2013 23:24:14 +0000 (17:24 -0600)
commit9bf0c9cd431440a831e60c0a0fd0bc4f0e083e7f
tree833a8a13c0b53c23ebbab98825e42f7f9d692fc4
parent2d3c627502f2a9b0a7de06a5a2df2365542a72c9
CIFS: Fix SMB2/SMB3 Copy offload support (refcopy) for large files

This third version of the patch, incorparating feedback from David Disseldorp
extends the ability of copychunk (refcopy) over smb2/smb3 mounts to
handle servers with smaller than usual maximum chunk sizes
and also fixes it to handle files bigger than the maximum chunk sizes

In the future this can be extended further to handle sending
multiple chunk requests in on SMB2 ioctl request which will
further improve performance, but even with one 1MB chunk per
request the speedup on cp is quite large.

Reviewed-by: David Disseldorp <ddiss@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c