diff options
author | phk <phk@FreeBSD.org> | 1995-12-14 09:55:16 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-14 09:55:16 +0000 |
commit | 9cb413a93c0c68c45292e4086ffc7cc2f6d36d3e (patch) | |
tree | 9887f4bf5939f3591e9b3a4f6e1865f9a1f810d8 /sys/kern/vfs_cache.c | |
parent | 63ec2c0ae9b44c5394bae5d6ee7fea5be9659585 (diff) | |
download | FreeBSD-src-9cb413a93c0c68c45292e4086ffc7cc2f6d36d3e.zip FreeBSD-src-9cb413a93c0c68c45292e4086ffc7cc2f6d36d3e.tar.gz |
Another mega commit to staticize things.
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 7813a9a..9b6f7bf 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -33,11 +33,13 @@ * SUCH DAMAGE. * * @(#)vfs_cache.c 8.3 (Berkeley) 8/22/94 - * $Id: vfs_cache.c,v 1.16 1995/07/29 11:40:19 bde Exp $ + * $Id: vfs_cache.c,v 1.17 1995/10/29 15:31:18 phk Exp $ */ #include <sys/param.h> #include <sys/systm.h> +#include <sys/kernel.h> +#include <sys/sysctl.h> #include <sys/time.h> #include <sys/mount.h> #include <sys/vnode.h> @@ -70,14 +72,15 @@ /* * Structures associated with name cacheing. */ -LIST_HEAD(nchashhead, namecache) *nchashtbl; /* Hash Table */ -TAILQ_HEAD(, namecache) nclruhead; /* LRU chain */ -u_long nchash; /* size of hash table */ +static LIST_HEAD(nchashhead, namecache) *nchashtbl; /* Hash Table */ +static TAILQ_HEAD(, namecache) nclruhead; /* LRU chain */ +static u_long nchash; /* size of hash table */ struct nchstats nchstats; /* cache effectiveness statistics */ -struct vnode nchENOENT; /* our own "novnode" */ -int doingcache = 1; /* 1 => enable the cache */ +static struct vnode nchENOENT; /* our own "novnode" */ +static int doingcache = 1; /* 1 => enable the cache */ +SYSCTL_INT(_debug, OID_AUTO, vfscache, CTLFLAG_RW, &doingcache, 0, ""); u_long nextvnodeid; -u_long numcache; +static u_long numcache; u_long numvnodes; #ifdef NCH_STATISTICS |