aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-05-17 09:53:29 -0400
committerPavel Shilovsky <pshilovsky@samba.org>2012-05-23 04:33:12 -0400
commit452757897a311b939ae202744754ffd9ce6704d8 (patch)
tree29f14cb0476af25d2bcd10883e0d612711462f29 /fs/cifs/connect.c
parent8aa26f3ed80ddbaf78804b6481fcfdbd447caa1c (diff)
CIFS: Move add/set_credits and get_credits_field to ops structure
Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index ce033d74f315..c71c11c9caab 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -4099,11 +4099,11 @@ int cifs_negotiate_protocol(unsigned int xid, struct cifs_ses *ses)
4099 if (server->maxBuf != 0) 4099 if (server->maxBuf != 0)
4100 return 0; 4100 return 0;
4101 4101
4102 cifs_set_credits(server, 1); 4102 set_credits(server, 1);
4103 rc = CIFSSMBNegotiate(xid, ses); 4103 rc = CIFSSMBNegotiate(xid, ses);
4104 if (rc == -EAGAIN) { 4104 if (rc == -EAGAIN) {
4105 /* retry only once on 1st time connection */ 4105 /* retry only once on 1st time connection */
4106 cifs_set_credits(server, 1); 4106 set_credits(server, 1);
4107 rc = CIFSSMBNegotiate(xid, ses); 4107 rc = CIFSSMBNegotiate(xid, ses);
4108 if (rc == -EAGAIN) 4108 if (rc == -EAGAIN)
4109 rc = -EHOSTDOWN; 4109 rc = -EHOSTDOWN;