diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2016-11-24 00:31:54 +0100 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-02-01 23:46:35 +0100 |
commit | b8f57ee8aad414a3122bff72d7968a94baacb9b6 (patch) | |
tree | 74d72b22c569ef6054e26e98b79d96f1f781592f /fs/cifs/cifsproto.h | |
parent | CIFS: Separate SMB2 sync header processing (diff) | |
download | linux-b8f57ee8aad414a3122bff72d7968a94baacb9b6.tar.xz 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.h | 3 |
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 */ , |