summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2016-11-17 16:20:18 -0800
committerSteve French <smfrench@gmail.com>2017-02-01 16:46:36 -0600
commitd70b9104b1ca586f73aaf59426756cec3325a40e (patch)
tree82a1466d1c5ce26254f350b8e18a434cb4fa52c0 /fs/cifs/cifsglob.h
parent9b7c18a2d4b798963ea80f6769701dcc4c24b55e (diff)
downloadlinux-d70b9104b1ca586f73aaf59426756cec3325a40e.tar.gz
linux-d70b9104b1ca586f73aaf59426756cec3325a40e.tar.bz2
linux-d70b9104b1ca586f73aaf59426756cec3325a40e.zip
CIFS: Add copy into pages callback for a read operation
Since we have two different types of reads (pagecache and direct) we need to process such responses differently after decryption of a packet. The change allows to specify a callback that copies a read payload data into preallocated pages. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 8a04a013a4ac..d6172c8b61bf 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -1129,6 +1129,9 @@ struct cifs_readdata {
int (*read_into_pages)(struct TCP_Server_Info *server,
struct cifs_readdata *rdata,
unsigned int len);
+ int (*copy_into_pages)(struct TCP_Server_Info *server,
+ struct cifs_readdata *rdata,
+ struct iov_iter *iter);
struct kvec iov[2];
unsigned int pagesz;
unsigned int tailsz;