summaryrefslogtreecommitdiffstats
path: root/fs/cifs/misc.c
diff options
context:
space:
mode:
authorSteve French2018-07-31 08:21:37 +0200
committerSteve French2018-08-07 21:20:22 +0200
commitfcabb89299d79010eb923afdd26de04afcc0527f (patch)
tree1421d066bffdd441311bff89551640a5a1f0c91e /fs/cifs/misc.c
parentcifs: use a refcount to protect open/closing the cached file handle (diff)
downloadkernel-qcow2-linux-fcabb89299d79010eb923afdd26de04afcc0527f.tar.gz
kernel-qcow2-linux-fcabb89299d79010eb923afdd26de04afcc0527f.tar.xz
kernel-qcow2-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/misc.c')
-rw-r--r--fs/cifs/misc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
index 53e8362cbc4a..dacb2c05674c 100644
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@ -122,9 +122,7 @@ tconInfoAlloc(void)
mutex_init(&ret_buf->crfid.fid_mutex);
ret_buf->crfid.fid = kzalloc(sizeof(struct cifs_fid),
GFP_KERNEL);
-#ifdef CONFIG_CIFS_STATS
spin_lock_init(&ret_buf->stat_lock);
-#endif
}
return ret_buf;
}