diff options
Diffstat (limited to 'fs/cifs/smb1ops.c')
-rw-r--r-- | fs/cifs/smb1ops.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index 28359e789fff..f4f839459e90 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c | |||
@@ -101,7 +101,8 @@ cifs_find_mid(struct TCP_Server_Info *server, char *buffer) | |||
101 | } | 101 | } |
102 | 102 | ||
103 | static void | 103 | static void |
104 | cifs_add_credits(struct TCP_Server_Info *server, const unsigned int add) | 104 | cifs_add_credits(struct TCP_Server_Info *server, const unsigned int add, |
105 | const int optype) | ||
105 | { | 106 | { |
106 | spin_lock(&server->req_lock); | 107 | spin_lock(&server->req_lock); |
107 | server->credits += add; | 108 | server->credits += add; |
@@ -120,11 +121,17 @@ cifs_set_credits(struct TCP_Server_Info *server, const int val) | |||
120 | } | 121 | } |
121 | 122 | ||
122 | static int * | 123 | static int * |
123 | cifs_get_credits_field(struct TCP_Server_Info *server) | 124 | cifs_get_credits_field(struct TCP_Server_Info *server, const int optype) |
124 | { | 125 | { |
125 | return &server->credits; | 126 | return &server->credits; |
126 | } | 127 | } |
127 | 128 | ||
129 | static unsigned int | ||
130 | cifs_get_credits(struct mid_q_entry *mid) | ||
131 | { | ||
132 | return 1; | ||
133 | } | ||
134 | |||
128 | /* | 135 | /* |
129 | * Find a free multiplex id (SMB mid). Otherwise there could be | 136 | * Find a free multiplex id (SMB mid). Otherwise there could be |
130 | * mid collisions which might cause problems, demultiplexing the | 137 | * mid collisions which might cause problems, demultiplexing the |
@@ -390,6 +397,7 @@ struct smb_version_operations smb1_operations = { | |||
390 | .add_credits = cifs_add_credits, | 397 | .add_credits = cifs_add_credits, |
391 | .set_credits = cifs_set_credits, | 398 | .set_credits = cifs_set_credits, |
392 | .get_credits_field = cifs_get_credits_field, | 399 | .get_credits_field = cifs_get_credits_field, |
400 | .get_credits = cifs_get_credits, | ||
393 | .get_next_mid = cifs_get_next_mid, | 401 | .get_next_mid = cifs_get_next_mid, |
394 | .read_data_offset = cifs_read_data_offset, | 402 | .read_data_offset = cifs_read_data_offset, |
395 | .read_data_length = cifs_read_data_length, | 403 | .read_data_length = cifs_read_data_length, |