reported and revert tested by krw
-/* $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 $ */
/*
/*
* 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)