diff options
Diffstat (limited to 'fs/cifs/smb1ops.c')
-rw-r--r-- | fs/cifs/smb1ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index 32a6c020478f..f0ce27c3c6e4 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c | |||
@@ -117,11 +117,11 @@ cifs_find_mid(struct TCP_Server_Info *server, char *buffer) | |||
117 | } | 117 | } |
118 | 118 | ||
119 | static void | 119 | static void |
120 | cifs_add_credits(struct TCP_Server_Info *server, const unsigned int add, | 120 | cifs_add_credits(struct TCP_Server_Info *server, |
121 | const int optype) | 121 | const struct cifs_credits *credits, const int optype) |
122 | { | 122 | { |
123 | spin_lock(&server->req_lock); | 123 | spin_lock(&server->req_lock); |
124 | server->credits += add; | 124 | server->credits += credits->value; |
125 | server->in_flight--; | 125 | server->in_flight--; |
126 | spin_unlock(&server->req_lock); | 126 | spin_unlock(&server->req_lock); |
127 | wake_up(&server->request_q); | 127 | wake_up(&server->request_q); |
@@ -308,7 +308,7 @@ coalesce_t2(char *second_buf, struct smb_hdr *target_hdr) | |||
308 | remaining = tgt_total_cnt - total_in_tgt; | 308 | remaining = tgt_total_cnt - total_in_tgt; |
309 | 309 | ||
310 | if (remaining < 0) { | 310 | if (remaining < 0) { |
311 | cifs_dbg(FYI, "Server sent too much data. tgt_total_cnt=%hu total_in_tgt=%hu\n", | 311 | cifs_dbg(FYI, "Server sent too much data. tgt_total_cnt=%hu total_in_tgt=%u\n", |
312 | tgt_total_cnt, total_in_tgt); | 312 | tgt_total_cnt, total_in_tgt); |
313 | return -EPROTO; | 313 | return -EPROTO; |
314 | } | 314 | } |