diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2016-10-25 11:38:47 -0700 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-02-01 16:46:34 -0600 |
commit | da502f7df03d2d0b416775f92ae022f3f82bedd5 (patch) | |
tree | 1b6914dea96f1b0c0935dd9d82acd28b41b9ecc5 /fs/cifs/cifsproto.h | |
parent | 31473fc4f9653b73750d3792ffce6a6e1bdf0da7 (diff) | |
download | talos-obmc-linux-da502f7df03d2d0b416775f92ae022f3f82bedd5.tar.gz talos-obmc-linux-da502f7df03d2d0b416775f92ae022f3f82bedd5.zip |
CIFS: Make SendReceive2() takes resp iov
Now SendReceive2 frees the first iov and returns a response buffer
in it that increases a code complexity. Simplify this by making
a caller responsible for freeing request buffer itself and returning
a response buffer in a separate iov.
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, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index c7b3c841e660..7b20993a5acc 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -96,7 +96,8 @@ extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server, unsigned int *credits); extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *, struct kvec *, int /* nvec to send */, - int * /* type of buf returned */ , const int flags); + int * /* type of buf returned */, const int flags, + struct kvec * /* resp vec */); extern int SendReceiveBlockingLock(const unsigned int xid, struct cifs_tcon *ptcon, struct smb_hdr *in_buf , |