From e227bddedd16a479ec014004133e28c362822337 Mon Sep 17 00:00:00 2001 From: tedu Date: Fri, 16 Jan 2015 21:16:14 +0000 Subject: [PATCH] increase namecache to maxvnodes again now that the n^2 loop is no more. battle tested by krw --- sys/kern/vfs_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 7781cfb2f62..33dcc7f6f43 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_cache.c,v 1.44 2015/01/16 17:05:49 tedu Exp $ */ +/* $OpenBSD: vfs_cache.c,v 1.45 2015/01/16 21:16:14 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 >= initialvnodes) { + if (numcache >= maxvnodes) { if ((ncp = TAILQ_FIRST(&nclruhead)) != NULL) cache_zap(ncp); else if ((ncp = TAILQ_FIRST(&nclruneghead)) != NULL) -- 2.20.1