summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2018-07-31 01:21:37 -0500
committerSteve French <stfrench@microsoft.com>2018-08-07 14:20:22 -0500
commitfcabb89299d79010eb923afdd26de04afcc0527f (patch)
tree1421d066bffdd441311bff89551640a5a1f0c91e /fs/cifs/smb2pdu.c
parent9da6ec7775d2cd76df53fbf4f1f35f6d490204f5 (diff)
downloadlinux-stable-fcabb89299d79010eb923afdd26de04afcc0527f.tar.gz
linux-stable-fcabb89299d79010eb923afdd26de04afcc0527f.tar.bz2
linux-stable-fcabb89299d79010eb923afdd26de04afcc0527f.zip
cifs: simple stats should always be enabled
CONFIG_CIFS_STATS should always be enabled as Pavel recently noted. Simple statistics are not a significant performance hit, and removing the ifdef simplifies the code slightly. Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r--fs/cifs/smb2pdu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index 0b4d7ebb812d..7c0b30321d9a 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -360,10 +360,8 @@ smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon,
total_len);
if (tcon != NULL) {
-#ifdef CONFIG_CIFS_STATS
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);
}