summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-01-28 20:16:04 +0000
committertedu <tedu@openbsd.org>2015-01-28 20:16:04 +0000
commit4a96bd0883800de0e663a83bc64033871e42c78a (patch)
tree0f4cadb956af81931de9a86cbd68da514001e935
parentTest the x509 certificate validation of syslog over TLS. (diff)
downloadwireguard-openbsd-4a96bd0883800de0e663a83bc64033871e42c78a.tar.xz
wireguard-openbsd-4a96bd0883800de0e663a83bc64033871e42c78a.zip
revert back to initial vnodes again so we can be sure nfs likes it
-rw-r--r--sys/kern/vfs_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 33dcc7f6f43..99f07b5e4d7 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_cache.c,v 1.45 2015/01/16 21:16:14 tedu Exp $ */
+/* $OpenBSD: vfs_cache.c,v 1.46 2015/01/28 20:16:04 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)