diff options
author | dg <dg@FreeBSD.org> | 1995-03-10 21:18:24 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-03-10 21:18:24 +0000 |
commit | 4e060d19417815a661bda8ccaa092ba9f960b504 (patch) | |
tree | 64f7cb3b19e8afc530d385dd9024a8e77793569e /sys/kern/vfs_export.c | |
parent | 1b881d5453775071938ea033e42d82f0a5efd0f1 (diff) | |
download | FreeBSD-src-4e060d19417815a661bda8ccaa092ba9f960b504.zip FreeBSD-src-4e060d19417815a661bda8ccaa092ba9f960b504.tar.gz |
Reorganized an if() expression for efficiency.
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r-- | sys/kern/vfs_export.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 96bea16..808a9f1 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94 - * $Id: vfs_subr.c,v 1.19 1995/03/07 18:59:45 davidg Exp $ + * $Id: vfs_subr.c,v 1.20 1995/03/09 20:27:04 phk Exp $ */ /* @@ -338,9 +338,9 @@ getnewvnode(tag, mp, vops, vpp) * 3. if less that 1/16th of our vnodes are free. * We don't want to trash the namei cache either. */ - if (vp == NULL || + if (freevnodes < (numvnodes >> 4) || numvnodes < desiredvnodes || - freevnodes < (numvnodes >> 4)) { + vp == NULL) { vp = (struct vnode *) malloc((u_long) sizeof *vp, M_VNODE, M_WAITOK); bzero((char *) vp, sizeof *vp); |