aboutsummaryrefslogtreecommitdiff
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-05-28 15:19:39 +0400
committerPavel Shilovsky <pshilovsky@samba.org>2012-07-24 21:55:20 +0400
commitd60622eb5a23904facf4a4efac60f5bfa810d7d4 (patch)
tree9906729a6aa59d6191a715942a447837c79aa758 /fs/cifs/smb2pdu.c
parent44c581866e2ae4bbc3c8eea5a3e3c7a0f639e12d (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/smb2pdu.c')
-rw-r--r--fs/cifs/smb2pdu.c4
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 */)