diff options
author | Steve French <stfrench@microsoft.com> | 2018-07-31 08:21:37 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-08-07 21:20:22 +0200 |
commit | fcabb89299d79010eb923afdd26de04afcc0527f (patch) | |
tree | 1421d066bffdd441311bff89551640a5a1f0c91e /fs/cifs/smb2pdu.c | |
parent | cifs: use a refcount to protect open/closing the cached file handle (diff) | |
download | linux-fcabb89299d79010eb923afdd26de04afcc0527f.tar.xz linux-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.c | 2 |
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); } |