diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-05-28 15:19:39 +0400 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2012-07-24 21:55:20 +0400 |
commit | d60622eb5a23904facf4a4efac60f5bfa810d7d4 (patch) | |
tree | 9906729a6aa59d6191a715942a447837c79aa758 /fs/cifs/smb2pdu.c | |
parent | 44c581866e2ae4bbc3c8eea5a3e3c7a0f639e12d (diff) | |
download | linux-3.10-d60622eb5a23904facf4a4efac60f5bfa810d7d4.tar.gz linux-3.10-d60622eb5a23904facf4a4efac60f5bfa810d7d4.tar.bz2 linux-3.10-d60622eb5a23904facf4a4efac60f5bfa810d7d4.zip |
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/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 373b6945161..e4eb1d3fb7d 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -282,10 +282,8 @@ small_smb2_init(__le16 smb2_command, struct cifs_tcon *tcon, if (tcon != NULL) { #ifdef CONFIG_CIFS_STATS2 - /* uint16_t com_code = le16_to_cpu(smb2_command); cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_sent[com_code]); - */ #endif cifs_stats_inc(&tcon->num_smbs_sent); } @@ -677,7 +675,7 @@ SMB2_logoff(const unsigned int xid, struct cifs_ses *ses) static inline void cifs_stats_fail_inc(struct cifs_tcon *tcon, uint16_t code) { - /* cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_fail[code]); */ + cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_failed[code]); } #define MAX_SHARENAME_LENGTH (255 /* server */ + 80 /* share */ + 1 /* NULL */) |