diff options
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index b1f375135f48..b5ad716b2642 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -460,7 +460,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifs_ses *ses) | |||
460 | server->maxReq = min_t(unsigned int, | 460 | server->maxReq = min_t(unsigned int, |
461 | le16_to_cpu(rsp->MaxMpxCount), | 461 | le16_to_cpu(rsp->MaxMpxCount), |
462 | cifs_max_pending); | 462 | cifs_max_pending); |
463 | cifs_set_credits(server, server->maxReq); | 463 | set_credits(server, server->maxReq); |
464 | server->maxBuf = le16_to_cpu(rsp->MaxBufSize); | 464 | server->maxBuf = le16_to_cpu(rsp->MaxBufSize); |
465 | server->max_vcs = le16_to_cpu(rsp->MaxNumberVcs); | 465 | server->max_vcs = le16_to_cpu(rsp->MaxNumberVcs); |
466 | /* even though we do not use raw we might as well set this | 466 | /* even though we do not use raw we might as well set this |
@@ -568,7 +568,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifs_ses *ses) | |||
568 | little endian */ | 568 | little endian */ |
569 | server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), | 569 | server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), |
570 | cifs_max_pending); | 570 | cifs_max_pending); |
571 | cifs_set_credits(server, server->maxReq); | 571 | set_credits(server, server->maxReq); |
572 | /* probably no need to store and check maxvcs */ | 572 | /* probably no need to store and check maxvcs */ |
573 | server->maxBuf = le32_to_cpu(pSMBr->MaxBufferSize); | 573 | server->maxBuf = le32_to_cpu(pSMBr->MaxBufferSize); |
574 | server->max_rw = le32_to_cpu(pSMBr->MaxRawSize); | 574 | server->max_rw = le32_to_cpu(pSMBr->MaxRawSize); |
@@ -720,7 +720,7 @@ cifs_echo_callback(struct mid_q_entry *mid) | |||
720 | struct TCP_Server_Info *server = mid->callback_data; | 720 | struct TCP_Server_Info *server = mid->callback_data; |
721 | 721 | ||
722 | DeleteMidQEntry(mid); | 722 | DeleteMidQEntry(mid); |
723 | cifs_add_credits(server, 1); | 723 | add_credits(server, 1); |
724 | } | 724 | } |
725 | 725 | ||
726 | int | 726 | int |
@@ -1563,7 +1563,7 @@ cifs_readv_callback(struct mid_q_entry *mid) | |||
1563 | 1563 | ||
1564 | queue_work(cifsiod_wq, &rdata->work); | 1564 | queue_work(cifsiod_wq, &rdata->work); |
1565 | DeleteMidQEntry(mid); | 1565 | DeleteMidQEntry(mid); |
1566 | cifs_add_credits(server, 1); | 1566 | add_credits(server, 1); |
1567 | } | 1567 | } |
1568 | 1568 | ||
1569 | /* cifs_async_readv - send an async write, and set up mid to handle result */ | 1569 | /* cifs_async_readv - send an async write, and set up mid to handle result */ |
@@ -2010,7 +2010,7 @@ cifs_writev_callback(struct mid_q_entry *mid) | |||
2010 | 2010 | ||
2011 | queue_work(cifsiod_wq, &wdata->work); | 2011 | queue_work(cifsiod_wq, &wdata->work); |
2012 | DeleteMidQEntry(mid); | 2012 | DeleteMidQEntry(mid); |
2013 | cifs_add_credits(tcon->ses->server, 1); | 2013 | add_credits(tcon->ses->server, 1); |
2014 | } | 2014 | } |
2015 | 2015 | ||
2016 | /* cifs_async_writev - send an async write, and set up mid to handle result */ | 2016 | /* cifs_async_writev - send an async write, and set up mid to handle result */ |