diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-12-27 07:12:43 -0500 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2012-07-24 13:54:55 -0400 |
commit | ec2e4523fdba88317e06d0c7a88af3a0860447fc (patch) | |
tree | 474781811d075dfb2e01345911fd0ff585f2d64a /fs/cifs/cifssmb.c | |
parent | 3792c1732878822ebf5a1c7e83e23453b9bbb698 (diff) |
CIFS: Add capability to send SMB2 negotiate message
and add negotiate request type to let set_credits know that
we are only on negotiate stage and no need to make a decision
about disabling echos and oplocks.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 7a3b4a3b113b..dcb0ad87e173 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -388,13 +388,6 @@ vt2_err: | |||
388 | return -EINVAL; | 388 | return -EINVAL; |
389 | } | 389 | } |
390 | 390 | ||
391 | static inline void inc_rfc1001_len(void *pSMB, int count) | ||
392 | { | ||
393 | struct smb_hdr *hdr = (struct smb_hdr *)pSMB; | ||
394 | |||
395 | be32_add_cpu(&hdr->smb_buf_length, count); | ||
396 | } | ||
397 | |||
398 | int | 391 | int |
399 | CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses) | 392 | CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses) |
400 | { | 393 | { |