diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-04-09 18:06:28 +1000 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-04-12 20:32:48 -0500 |
commit | e19b2bc0790a1c25b226815ce132c06274b1ba87 (patch) | |
tree | 671e8abfb8ad3a01bb92b6250e06093e6335e8b5 /fs/cifs/transport.c | |
parent | 0d4b46ba7d124e67bcf27082bf313f8c07c93287 (diff) | |
download | op-kernel-dev-e19b2bc0790a1c25b226815ce132c06274b1ba87.zip op-kernel-dev-e19b2bc0790a1c25b226815ce132c06274b1ba87.tar.gz |
cifs: add resp_buf_size to the mid_q_entry structure
and get rid of some more calls to get_rfc1002_length()
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/transport.c')
-rw-r--r-- | fs/cifs/transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 279718d..8f6f259 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -790,7 +790,7 @@ cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, buf = (char *)midQ->resp_buf; resp_iov->iov_base = buf; - resp_iov->iov_len = get_rfc1002_length(buf) + + resp_iov->iov_len = midQ->resp_buf_size + ses->server->vals->header_preamble_size; if (midQ->large_buf) *resp_buf_type = CIFS_LARGE_BUFFER; |