Update freevnodes when adding a vnode to the head of the free list.

This commit is contained in:
Tor Egge 1998-01-31 01:17:58 +00:00
parent 40f001c97d
commit d09a16d804
2 changed files with 8 additions and 4 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
* $Id: vfs_subr.c,v 1.125 1998/01/22 17:29:52 dyson Exp $
* $Id: vfs_subr.c,v 1.126 1998/01/24 02:01:22 dyson Exp $
*/
/*
@ -1458,7 +1458,9 @@ vgonel(vp, p)
} else if (vp->v_flag & VTBFREE) {
TAILQ_REMOVE(&vnode_tobefree_list, vp, v_freelist);
vp->v_flag &= ~VTBFREE;
}
freevnodes++;
} else
freevnodes++;
vp->v_flag |= VFREE;
TAILQ_INSERT_HEAD(&vnode_free_list, vp, v_freelist);
simple_unlock(&vnode_free_list_slock);

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
* $Id: vfs_subr.c,v 1.125 1998/01/22 17:29:52 dyson Exp $
* $Id: vfs_subr.c,v 1.126 1998/01/24 02:01:22 dyson Exp $
*/
/*
@ -1458,7 +1458,9 @@ vgonel(vp, p)
} else if (vp->v_flag & VTBFREE) {
TAILQ_REMOVE(&vnode_tobefree_list, vp, v_freelist);
vp->v_flag &= ~VTBFREE;
}
freevnodes++;
} else
freevnodes++;
vp->v_flag |= VFREE;
TAILQ_INSERT_HEAD(&vnode_free_list, vp, v_freelist);
simple_unlock(&vnode_free_list_slock);