aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index c9c7aa7ed966..f2e76f3b0c61 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -38,13 +38,13 @@ change_conf(struct TCP_Server_Info *server)
38 case 1: 38 case 1:
39 server->echoes = false; 39 server->echoes = false;
40 server->oplocks = false; 40 server->oplocks = false;
41 cERROR(1, "disabling echoes and oplocks"); 41 cifs_dbg(VFS, "disabling echoes and oplocks\n");
42 break; 42 break;
43 case 2: 43 case 2:
44 server->echoes = true; 44 server->echoes = true;
45 server->oplocks = false; 45 server->oplocks = false;
46 server->echo_credits = 1; 46 server->echo_credits = 1;
47 cFYI(1, "disabling oplocks"); 47 cifs_dbg(FYI, "disabling oplocks\n");
48 break; 48 break;
49 default: 49 default:
50 server->echoes = true; 50 server->echoes = true;
@@ -147,10 +147,10 @@ smb2_dump_detail(void *buf)
147#ifdef CONFIG_CIFS_DEBUG2 147#ifdef CONFIG_CIFS_DEBUG2
148 struct smb2_hdr *smb = (struct smb2_hdr *)buf; 148 struct smb2_hdr *smb = (struct smb2_hdr *)buf;
149 149
150 cERROR(1, "Cmd: %d Err: 0x%x Flags: 0x%x Mid: %llu Pid: %d", 150 cifs_dbg(VFS, "Cmd: %d Err: 0x%x Flags: 0x%x Mid: %llu Pid: %d\n",
151 smb->Command, smb->Status, smb->Flags, smb->MessageId, 151 smb->Command, smb->Status, smb->Flags, smb->MessageId,
152 smb->ProcessId); 152 smb->ProcessId);
153 cERROR(1, "smb buf %p len %u", smb, smb2_calc_size(smb)); 153 cifs_dbg(VFS, "smb buf %p len %u\n", smb, smb2_calc_size(smb));
154#endif 154#endif
155} 155}
156 156
@@ -436,7 +436,7 @@ smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon,
436 &oplock, NULL); 436 &oplock, NULL);
437 kfree(utf16_path); 437 kfree(utf16_path);
438 if (rc) { 438 if (rc) {
439 cERROR(1, "open dir failed"); 439 cifs_dbg(VFS, "open dir failed\n");
440 return rc; 440 return rc;
441 } 441 }
442 442
@@ -448,7 +448,7 @@ smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon,
448 rc = SMB2_query_directory(xid, tcon, persistent_fid, volatile_fid, 0, 448 rc = SMB2_query_directory(xid, tcon, persistent_fid, volatile_fid, 0,
449 srch_inf); 449 srch_inf);
450 if (rc) { 450 if (rc) {
451 cERROR(1, "query directory failed"); 451 cifs_dbg(VFS, "query directory failed\n");
452 SMB2_close(xid, tcon, persistent_fid, volatile_fid); 452 SMB2_close(xid, tcon, persistent_fid, volatile_fid);
453 } 453 }
454 return rc; 454 return rc;
@@ -744,4 +744,5 @@ struct smb_version_values smb30_values = {
744 .cap_unix = 0, 744 .cap_unix = 0,
745 .cap_nt_find = SMB2_NT_FIND, 745 .cap_nt_find = SMB2_NT_FIND,
746 .cap_large_files = SMB2_LARGE_FILES, 746 .cap_large_files = SMB2_LARGE_FILES,
747 .oplock_read = SMB2_OPLOCK_LEVEL_II,
747}; 748};