aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r--fs/cifs/transport.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index d1998b6086ef..147aa22c3c3a 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -295,7 +295,7 @@ static int wait_for_free_request(struct TCP_Server_Info *server,
295 return 0; 295 return 0;
296} 296}
297 297
298static int allocate_mid(struct cifsSesInfo *ses, struct smb_hdr *in_buf, 298static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf,
299 struct mid_q_entry **ppmidQ) 299 struct mid_q_entry **ppmidQ)
300{ 300{
301 if (ses->server->tcpStatus == CifsExiting) { 301 if (ses->server->tcpStatus == CifsExiting) {
@@ -355,7 +355,7 @@ cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov,
355 return rc; 355 return rc;
356 356
357 /* enable signing if server requires it */ 357 /* enable signing if server requires it */
358 if (server->secMode & (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) 358 if (server->sec_mode & (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED))
359 hdr->Flags2 |= SMBFLG2_SECURITY_SIGNATURE; 359 hdr->Flags2 |= SMBFLG2_SECURITY_SIGNATURE;
360 360
361 mutex_lock(&server->srv_mutex); 361 mutex_lock(&server->srv_mutex);
@@ -409,7 +409,7 @@ out_err:
409 * 409 *
410 */ 410 */
411int 411int
412SendReceiveNoRsp(const unsigned int xid, struct cifsSesInfo *ses, 412SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
413 struct smb_hdr *in_buf, int flags) 413 struct smb_hdr *in_buf, int flags)
414{ 414{
415 int rc; 415 int rc;
@@ -504,7 +504,7 @@ cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server,
504 min_t(u32, 92, be32_to_cpu(mid->resp_buf->smb_buf_length))); 504 min_t(u32, 92, be32_to_cpu(mid->resp_buf->smb_buf_length)));
505 505
506 /* convert the length into a more usable form */ 506 /* convert the length into a more usable form */
507 if (server->secMode & (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) { 507 if (server->sec_mode & (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) {
508 /* FIXME: add code to kill session */ 508 /* FIXME: add code to kill session */
509 if (cifs_verify_signature(mid->resp_buf, server, 509 if (cifs_verify_signature(mid->resp_buf, server,
510 mid->sequence_number + 1) != 0) 510 mid->sequence_number + 1) != 0)
@@ -516,7 +516,7 @@ cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server,
516} 516}
517 517
518int 518int
519SendReceive2(const unsigned int xid, struct cifsSesInfo *ses, 519SendReceive2(const unsigned int xid, struct cifs_ses *ses,
520 struct kvec *iov, int n_vec, int *pRespBufType /* ret */, 520 struct kvec *iov, int n_vec, int *pRespBufType /* ret */,
521 const int flags) 521 const int flags)
522{ 522{
@@ -645,7 +645,7 @@ out:
645} 645}
646 646
647int 647int
648SendReceive(const unsigned int xid, struct cifsSesInfo *ses, 648SendReceive(const unsigned int xid, struct cifs_ses *ses,
649 struct smb_hdr *in_buf, struct smb_hdr *out_buf, 649 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
650 int *pbytes_returned, const int long_op) 650 int *pbytes_returned, const int long_op)
651{ 651{
@@ -761,12 +761,12 @@ out:
761 blocking lock to return. */ 761 blocking lock to return. */
762 762
763static int 763static int
764send_lock_cancel(const unsigned int xid, struct cifsTconInfo *tcon, 764send_lock_cancel(const unsigned int xid, struct cifs_tcon *tcon,
765 struct smb_hdr *in_buf, 765 struct smb_hdr *in_buf,
766 struct smb_hdr *out_buf) 766 struct smb_hdr *out_buf)
767{ 767{
768 int bytes_returned; 768 int bytes_returned;
769 struct cifsSesInfo *ses = tcon->ses; 769 struct cifs_ses *ses = tcon->ses;
770 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf; 770 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf;
771 771
772 /* We just modify the current in_buf to change 772 /* We just modify the current in_buf to change
@@ -783,14 +783,14 @@ send_lock_cancel(const unsigned int xid, struct cifsTconInfo *tcon,
783} 783}
784 784
785int 785int
786SendReceiveBlockingLock(const unsigned int xid, struct cifsTconInfo *tcon, 786SendReceiveBlockingLock(const unsigned int xid, struct cifs_tcon *tcon,
787 struct smb_hdr *in_buf, struct smb_hdr *out_buf, 787 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
788 int *pbytes_returned) 788 int *pbytes_returned)
789{ 789{
790 int rc = 0; 790 int rc = 0;
791 int rstart = 0; 791 int rstart = 0;
792 struct mid_q_entry *midQ; 792 struct mid_q_entry *midQ;
793 struct cifsSesInfo *ses; 793 struct cifs_ses *ses;
794 794
795 if (tcon == NULL || tcon->ses == NULL) { 795 if (tcon == NULL || tcon->ses == NULL) {
796 cERROR(1, "Null smb session"); 796 cERROR(1, "Null smb session");