-/* $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 $ */
/*
/*
* 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)