summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-10 12:16:42 +0000
committerphk <phk@FreeBSD.org>2005-02-10 12:16:42 +0000
commit6d9a6aacc49a1f967c312d645b5ea72fa82c92bf (patch)
tree96f56367f0358fafaa63cc4ecc916ec4d9a37054 /sys/kern/vfs_cache.c
parent82e926dbf2e8fdbf2b86afbd11a8f23e83da6b1f (diff)
downloadFreeBSD-src-6d9a6aacc49a1f967c312d645b5ea72fa82c92bf.zip
FreeBSD-src-6d9a6aacc49a1f967c312d645b5ea72fa82c92bf.tar.gz
Make a SYSCTL_NODE and a mutex static
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index d371ed1..942aae2 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -109,7 +109,7 @@ SYSCTL_ULONG(_debug, OID_AUTO, numcachepl, CTLFLAG_RD, &numcachepl, 0, "");
#endif
struct nchstats nchstats; /* cache effectiveness statistics */
-struct mtx cache_lock;
+static struct mtx cache_lock;
MTX_SYSINIT(vfscache, &cache_lock, "Name Cache", MTX_DEF);
#define CACHE_LOCK() mtx_lock(&cache_lock)
@@ -147,7 +147,7 @@ SYSCTL_INT(_debug, OID_AUTO, ncsize, CTLFLAG_RD, 0, sizeof(struct namecache), ""
/*
* The new name cache statistics
*/
-SYSCTL_NODE(_vfs, OID_AUTO, cache, CTLFLAG_RW, 0, "Name cache statistics");
+static SYSCTL_NODE(_vfs, OID_AUTO, cache, CTLFLAG_RW, 0, "Name cache statistics");
#define STATNODE(mode, name, var) \
SYSCTL_ULONG(_vfs_cache, OID_AUTO, name, mode, var, 0, "");
STATNODE(CTLFLAG_RD, numneg, &numneg);
OpenPOWER on IntegriCloud