summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-01-08 18:07:35 +0000
committertedu <tedu@openbsd.org>2015-01-08 18:07:35 +0000
commit39e95ca653a9fbb2618c4765f5c6e7240a5e3e93 (patch)
treee3a3f679d0fe365acd1cbaf2bc95ccc4cba44444 /sys/kern/vfs_cache.c
parentClear autoconf6 flag after autoconf6 cleanup happened, not before. (diff)
downloadwireguard-openbsd-39e95ca653a9fbb2618c4765f5c6e7240a5e3e93.tar.xz
wireguard-openbsd-39e95ca653a9fbb2618c4765f5c6e7240a5e3e93.zip
increase namecache size to follow maxvnodes. seems better than desiredvnodes.
(accuracy of variable names, aside) ok kettenis
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 ceceb9098bf..e13efce9d61 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_cache.c,v 1.40 2014/12/19 05:59:21 tedu Exp $ */
+/* $OpenBSD: vfs_cache.c,v 1.41 2015/01/08 18:07:35 tedu Exp $ */
/* $NetBSD: vfs_cache.c,v 1.13 1996/02/04 02:18:09 christos Exp $ */
/*
@@ -349,7 +349,7 @@ cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
/*
* allocate, or recycle (free and allocate) an ncp.
*/
- if (numcache >= desiredvnodes) {
+ if (numcache >= maxvnodes) {
if ((ncp = TAILQ_FIRST(&nclruhead)) != NULL)
cache_zap(ncp);
else if ((ncp = TAILQ_FIRST(&nclruneghead)) != NULL)