summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2007-03-12 19:25:59 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2007-03-12 19:25:59 +0000
commite2accbecd55c27c9a1a2365893c0f5d93219d012 (patch)
treeca0b2751f85606cf94b365f4b6aaa821bfd43ddd /sys/kern
parentb570921c68c222dc3b999a7bd7230170676eaa53 (diff)
better desiredvnodes not based on maxusers; pedro@ deraadt@ ok
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index c5da278c9e3..de843b98e08 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.139 2007/02/20 17:42:47 deraadt Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.140 2007/03/12 19:25:58 mickey Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -118,6 +118,7 @@ void printlockedvnodes(void);
KNOTE((struct klist *)&vp->v_selectinfo.vsi_selinfo.si_note, (b))
struct pool vnode_pool;
+int desiredvnodes;
/*
* Initialize the vnode management data structures.
@@ -126,6 +127,8 @@ void
vntblinit(void)
{
+ /* every buffer needs its vnode! */
+ desiredvnodes = nbuf;
pool_init(&vnode_pool, sizeof(struct vnode), 0, 0, 0, "vnodes",
&pool_allocator_nointr);
simple_lock_init(&mntvnode_slock);