diff options
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 6bf55d0ed494..81340c6253eb 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c | |||
@@ -226,6 +226,15 @@ cifs_small_buf_release(void *buf_to_free) | |||
226 | return; | 226 | return; |
227 | } | 227 | } |
228 | 228 | ||
229 | void | ||
230 | free_rsp_buf(int resp_buftype, void *rsp) | ||
231 | { | ||
232 | if (resp_buftype == CIFS_SMALL_BUFFER) | ||
233 | cifs_small_buf_release(rsp); | ||
234 | else if (resp_buftype == CIFS_LARGE_BUFFER) | ||
235 | cifs_buf_release(rsp); | ||
236 | } | ||
237 | |||
229 | /* NB: MID can not be set if treeCon not passed in, in that | 238 | /* NB: MID can not be set if treeCon not passed in, in that |
230 | case it is responsbility of caller to set the mid */ | 239 | case it is responsbility of caller to set the mid */ |
231 | void | 240 | void |
@@ -414,7 +423,7 @@ is_valid_oplock_break(char *buffer, struct TCP_Server_Info *srv) | |||
414 | return true; | 423 | return true; |
415 | } | 424 | } |
416 | if (pSMBr->hdr.Status.CifsError) { | 425 | if (pSMBr->hdr.Status.CifsError) { |
417 | cifs_dbg(FYI, "notify err 0x%d\n", | 426 | cifs_dbg(FYI, "notify err 0x%x\n", |
418 | pSMBr->hdr.Status.CifsError); | 427 | pSMBr->hdr.Status.CifsError); |
419 | return true; | 428 | return true; |
420 | } | 429 | } |
@@ -441,7 +450,7 @@ is_valid_oplock_break(char *buffer, struct TCP_Server_Info *srv) | |||
441 | if (pSMB->hdr.WordCount != 8) | 450 | if (pSMB->hdr.WordCount != 8) |
442 | return false; | 451 | return false; |
443 | 452 | ||
444 | cifs_dbg(FYI, "oplock type 0x%d level 0x%d\n", | 453 | cifs_dbg(FYI, "oplock type 0x%x level 0x%x\n", |
445 | pSMB->LockType, pSMB->OplockLevel); | 454 | pSMB->LockType, pSMB->OplockLevel); |
446 | if (!(pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE)) | 455 | if (!(pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE)) |
447 | return false; | 456 | return false; |