aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-03-09 19:04:53 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-03-09 19:04:53 +0000
commit4ab2a9a022ed105de65de11d3c8d72f0c3a480e7 (patch)
tree5d65c1749c50eaeeaeaabc0dc72f760e5e6ad230 /sys/kern/vfs_cache.c
parentd10910e6cee0dca8be3d5a7fdbe404a15d9e7b52 (diff)
downloadsrc-4ab2a9a022ed105de65de11d3c8d72f0c3a480e7.tar.gz
src-4ab2a9a022ed105de65de11d3c8d72f0c3a480e7.zip
Notes
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 3c32808b4b70..cec1e3385838 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -184,6 +184,7 @@ static MALLOC_DEFINE(M_VFSCACHE, "vfscache", "VFS name cache entries");
*/
#define NCF_WHITE 1
+#ifdef DIAGNOSTIC
/*
* Grab an atomic snapshot of the name cache hash chain lengths
*/
@@ -268,6 +269,7 @@ sysctl_debug_hashstat_nchash(SYSCTL_HANDLER_ARGS)
SYSCTL_PROC(_debug_hashstat, OID_AUTO, nchash, CTLTYPE_INT|CTLFLAG_RD|
CTLFLAG_MPSAFE, 0, 0, sysctl_debug_hashstat_nchash, "I",
"nchash chain lengths");
+#endif
/*
* cache_zap():