diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-04-09 18:06:26 +1000 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-04-12 17:06:33 -0500 |
commit | 2e96467d9eb189b38954bcbbf1ee16762914f4cb (patch) | |
tree | 84a179ad8e3d58c31266b8852d8db976b632e186 /fs/cifs/cifssmb.c | |
parent | 5100d8a3fe034845926266a4e7f5bdcbb859088b (diff) |
cifs: add pdu_size to the TCP_Server_Info structure
and get rid of some get_rfc1002_length() in smb2
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index abdc93d4fee8..890b3a40c79c 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -1456,7 +1456,7 @@ cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid) unsigned int data_offset, data_len; struct cifs_readdata *rdata = mid->callback_data; char *buf = server->smallbuf; - unsigned int buflen = get_rfc1002_length(buf) + + unsigned int buflen = server->pdu_size + server->vals->header_preamble_size; bool use_rdma_mr = false; |