diff options
author | phk <phk@FreeBSD.org> | 1995-11-29 11:28:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-11-29 11:28:00 +0000 |
commit | e9b6a008cf513b0c36b6787afae1bf903ef945fb (patch) | |
tree | 0f71279aa0b8f863647448b7ab712a03cc7d44ae /sys/kern/vfs_subr.c | |
parent | e6b331e558c9cb74a87192637a9048345f52518e (diff) | |
download | FreeBSD-src-e9b6a008cf513b0c36b6787afae1bf903ef945fb.zip FreeBSD-src-e9b6a008cf513b0c36b6787afae1bf903ef945fb.tar.gz |
A test was backwards.
Noticed by: Cheng, Hsiao-Yang <sycheng@cis.ufl.edu>
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index e9f1678..80cb00f 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94 - * $Id: vfs_subr.c,v 1.42 1995/11/16 09:45:23 bde Exp $ + * $Id: vfs_subr.c,v 1.43 1995/11/20 12:42:11 phk Exp $ */ /* @@ -89,6 +89,7 @@ u_long freevnodes = 0; struct mntlist mountlist; /* mounted filesystem list */ int desiredvnodes; +SYSCTL_INT(_kern, KERN_MAXVNODES, maxvnodes, CTLFLAG_RD, &desiredvnodes, 0, ""); /* * Initialize the vnode management data structures. @@ -1281,7 +1282,7 @@ sysctl_vnode SYSCTL_HANDLER_ARGS #define VNODESZ sizeof (struct vnode) req->lock = 0; - if (req->oldptr) /* Make an estimate */ + if (!req->oldptr) /* Make an estimate */ return (SYSCTL_OUT(req, 0, (numvnodes + KINFO_VNODESLOP) * (VPTRSZ + VNODESZ))); |