aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-06-22 20:13:47 -0400
committerSteve French <sfrench@hera.kernel.org>2005-06-22 20:13:47 -0400
commitdfb7533b5f157ac7135da23883e80d895227d965 (patch)
tree6a09f6d0945653bb21a2cdc8f050b82a4671227c /fs/cifs/cifssmb.c
parent8b22c249e7de453961e4d253b19fc2a0bdd65d53 (diff)
[CIFS] Add stats for findfirst, findnext, findclose
Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 3c628bf667a5..b31158a2643d 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -2396,7 +2396,9 @@ findUniqueRetry:
2396 if (rc) { 2396 if (rc) {
2397 cFYI(1, ("Send error in FindFileDirInfo = %d", rc)); 2397 cFYI(1, ("Send error in FindFileDirInfo = %d", rc));
2398 } else { /* decode response */ 2398 } else { /* decode response */
2399 2399#ifdef CONFIG_CIFS_STATS
2400 atomic_inc(&tcon->num_ffirst);
2401#endif
2400 /* BB fill in */ 2402 /* BB fill in */
2401 } 2403 }
2402 2404
@@ -2509,6 +2511,9 @@ findFirstRetry:
2509 if (rc == -EAGAIN) 2511 if (rc == -EAGAIN)
2510 goto findFirstRetry; 2512 goto findFirstRetry;
2511 } else { /* decode response */ 2513 } else { /* decode response */
2514#ifdef CONFIG_CIFS_STATS
2515 atomic_inc(&tcon->num_ffirst);
2516#endif
2512 /* BB remember to free buffer if error BB */ 2517 /* BB remember to free buffer if error BB */
2513 rc = validate_t2((struct smb_t2_rsp *)pSMBr); 2518 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
2514 if(rc == 0) { 2519 if(rc == 0) {
@@ -2622,6 +2627,9 @@ int CIFSFindNext(const int xid, struct cifsTconInfo *tcon,
2622 } else 2627 } else
2623 cFYI(1, ("FindNext returned = %d", rc)); 2628 cFYI(1, ("FindNext returned = %d", rc));
2624 } else { /* decode response */ 2629 } else { /* decode response */
2630#ifdef CONFIG_CIFS_STATS
2631 atomic_inc(&tcon->num_fnext);
2632#endif
2625 rc = validate_t2((struct smb_t2_rsp *)pSMBr); 2633 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
2626 2634
2627 if(rc == 0) { 2635 if(rc == 0) {
@@ -2691,6 +2699,9 @@ CIFSFindClose(const int xid, struct cifsTconInfo *tcon, const __u16 searchHandle
2691 if (rc) { 2699 if (rc) {
2692 cERROR(1, ("Send error in FindClose = %d", rc)); 2700 cERROR(1, ("Send error in FindClose = %d", rc));
2693 } 2701 }
2702#ifdef CONFIG_CIFS_STATS
2703 atomic_inc(&tcon->num_fclose);
2704#endif
2694 cifs_small_buf_release(pSMB); 2705 cifs_small_buf_release(pSMB);
2695 2706
2696 /* Since session is dead, search handle closed on server already */ 2707 /* Since session is dead, search handle closed on server already */