From f9041060e187b8550c837d1be9666e123e3b19fd Mon Sep 17 00:00:00 2001 From: tedu Date: Mon, 12 Jan 2015 20:00:11 +0000 Subject: [PATCH] revert the namecache embiggening since it seems to cause hangs at reboot. reported and revert 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 ede8ca15e28..160a6b3995a 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_cache.c,v 1.42 2015/01/09 05:01:56 tedu Exp $ */ +/* $OpenBSD: vfs_cache.c,v 1.43 2015/01/12 20:00:11 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 >= maxvnodes) { + if (numcache >= initialvnodes) { if ((ncp = TAILQ_FIRST(&nclruhead)) != NULL) cache_zap(ncp); else if ((ncp = TAILQ_FIRST(&nclruneghead)) != NULL) -- 2.20.1