aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r--fs/cifs/misc.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
index 21a2c46334e1..0bcec0844bee 100644
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@ -353,7 +353,8 @@ header_assemble(struct smb_hdr *buffer, char smb_command /* command */ ,
353 /* with userid/password pairs found on the smb session */ 353 /* with userid/password pairs found on the smb session */
354 /* for other target tcp/ip addresses BB */ 354 /* for other target tcp/ip addresses BB */
355 if (current->fsuid != treeCon->ses->linux_uid) { 355 if (current->fsuid != treeCon->ses->linux_uid) {
356 cFYI(1,("Multiuser mode and UID did not match tcon uid")); 356 cFYI(1, ("Multiuser mode and UID "
357 "did not match tcon uid"));
357 read_lock(&GlobalSMBSeslock); 358 read_lock(&GlobalSMBSeslock);
358 list_for_each(temp_item, &GlobalSMBSessionList) { 359 list_for_each(temp_item, &GlobalSMBSessionList) {
359 ses = list_entry(temp_item, struct cifsSesInfo, cifsSessionList); 360 ses = list_entry(temp_item, struct cifsSesInfo, cifsSessionList);
@@ -461,7 +462,8 @@ checkSMB(struct smb_hdr *smb, __u16 mid, unsigned int length)
461 clc_len = smbCalcSize_LE(smb); 462 clc_len = smbCalcSize_LE(smb);
462 463
463 if (4 + len != length) { 464 if (4 + len != length) {
464 cERROR(1, ("Length read does not match RFC1001 length %d",len)); 465 cERROR(1, ("Length read does not match RFC1001 length %d",
466 len));
465 return 1; 467 return 1;
466 } 468 }
467 469
@@ -516,7 +518,8 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv)
516 518
517 pnotify = (struct file_notify_information *) 519 pnotify = (struct file_notify_information *)
518 ((char *)&pSMBr->hdr.Protocol + data_offset); 520 ((char *)&pSMBr->hdr.Protocol + data_offset);
519 cFYI(1,("dnotify on %s Action: 0x%x", pnotify->FileName, 521 cFYI(1, ("dnotify on %s Action: 0x%x",
522 pnotify->FileName,
520 pnotify->Action)); /* BB removeme BB */ 523 pnotify->Action)); /* BB removeme BB */
521 /* cifs_dump_mem("Rcvd notify Data: ",buf, 524 /* cifs_dump_mem("Rcvd notify Data: ",buf,
522 sizeof(struct smb_hdr)+60); */ 525 sizeof(struct smb_hdr)+60); */
@@ -567,7 +570,8 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv)
567 if (pSMB->Fid == netfile->netfid) { 570 if (pSMB->Fid == netfile->netfid) {
568 struct cifsInodeInfo *pCifsInode; 571 struct cifsInodeInfo *pCifsInode;
569 read_unlock(&GlobalSMBSeslock); 572 read_unlock(&GlobalSMBSeslock);
570 cFYI(1,("file id match, oplock break")); 573 cFYI(1,
574 ("file id match, oplock break"));
571 pCifsInode = 575 pCifsInode =
572 CIFS_I(netfile->pInode); 576 CIFS_I(netfile->pInode);
573 pCifsInode->clientCanCacheAll = FALSE; 577 pCifsInode->clientCanCacheAll = FALSE;
@@ -578,7 +582,8 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv)
578 AllocOplockQEntry(netfile->pInode, 582 AllocOplockQEntry(netfile->pInode,
579 netfile->netfid, 583 netfile->netfid,
580 tcon); 584 tcon);
581 cFYI(1,("about to wake up oplock thd")); 585 cFYI(1,
586 ("about to wake up oplock thread"));
582 if (oplockThread) 587 if (oplockThread)
583 wake_up_process(oplockThread); 588 wake_up_process(oplockThread);
584 return TRUE; 589 return TRUE;