From: tedu Date: Thu, 8 Jan 2015 18:07:35 +0000 (+0000) Subject: increase namecache size to follow maxvnodes. seems better than desiredvnodes. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=39e95ca653a9fbb2618c4765f5c6e7240a5e3e93;p=openbsd increase namecache size to follow maxvnodes. seems better than desiredvnodes. (accuracy of variable names, aside) ok kettenis --- 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)