summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
authorPavel Shilovsky2016-11-24 00:31:54 +0100
committerSteve French2017-02-01 23:46:35 +0100
commitb8f57ee8aad414a3122bff72d7968a94baacb9b6 (patch)
tree74d72b22c569ef6054e26e98b79d96f1f781592f /fs/cifs/cifsproto.h
parentCIFS: Separate SMB2 sync header processing (diff)
downloadkernel-qcow2-linux-b8f57ee8aad414a3122bff72d7968a94baacb9b6.tar.gz
kernel-qcow2-linux-b8f57ee8aad414a3122bff72d7968a94baacb9b6.tar.xz
kernel-qcow2-linux-b8f57ee8aad414a3122bff72d7968a94baacb9b6.zip
CIFS: Separate RFC1001 length processing for SMB2 read
Allocate and initialize SMB2 read request without RFC1001 length field to directly call cifs_send_recv() rather than SendReceive2() in a read codepath. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r--fs/cifs/cifsproto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
index 7b20993a5acc..711718cd73dd 100644
--- a/fs/cifs/cifsproto.h
+++ b/fs/cifs/cifsproto.h
@@ -79,6 +79,9 @@ extern int cifs_call_async(struct TCP_Server_Info *server,
struct smb_rqst *rqst,
mid_receive_t *receive, mid_callback_t *callback,
void *cbdata, const int flags);
+extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
+ struct smb_rqst *rqst, int *resp_buf_type,
+ const int flags, struct kvec *resp_iov);
extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *,
struct smb_hdr * /* input */ ,
struct smb_hdr * /* out */ ,