diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-05-28 07:19:39 -0400 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2012-07-24 13:55:20 -0400 |
commit | d60622eb5a23904facf4a4efac60f5bfa810d7d4 (patch) | |
tree | 9906729a6aa59d6191a715942a447837c79aa758 /fs/cifs/cifsglob.h | |
parent | 44c581866e2ae4bbc3c8eea5a3e3c7a0f639e12d (diff) |
CIFS: Allow SMB2 statistics to be tracked
Since there are only 19 command codes, it also is easier to track by exact
command code than it was for cifs.
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 0896328418aa..12b1176b87b0 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -28,6 +28,9 @@ | |||
28 | #include "cifsacl.h" | 28 | #include "cifsacl.h" |
29 | #include <crypto/internal/hash.h> | 29 | #include <crypto/internal/hash.h> |
30 | #include <linux/scatterlist.h> | 30 | #include <linux/scatterlist.h> |
31 | #ifdef CONFIG_CIFS_SMB2 | ||
32 | #include "smb2pdu.h" | ||
33 | #endif | ||
31 | 34 | ||
32 | /* | 35 | /* |
33 | * The sizes of various internal tables and strings | 36 | * The sizes of various internal tables and strings |
@@ -592,6 +595,12 @@ struct cifs_tcon { | |||
592 | atomic_t num_acl_get; | 595 | atomic_t num_acl_get; |
593 | atomic_t num_acl_set; | 596 | atomic_t num_acl_set; |
594 | } cifs_stats; | 597 | } cifs_stats; |
598 | #ifdef CONFIG_CIFS_SMB2 | ||
599 | struct { | ||
600 | atomic_t smb2_com_sent[NUMBER_OF_SMB2_COMMANDS]; | ||
601 | atomic_t smb2_com_failed[NUMBER_OF_SMB2_COMMANDS]; | ||
602 | } smb2_stats; | ||
603 | #endif /* CONFIG_CIFS_SMB2 */ | ||
595 | } stats; | 604 | } stats; |
596 | #ifdef CONFIG_CIFS_STATS2 | 605 | #ifdef CONFIG_CIFS_STATS2 |
597 | unsigned long long time_writes; | 606 | unsigned long long time_writes; |