mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Fix another vnode leak.
This commit is contained in:
parent
2e56a2ce82
commit
53f6f08545
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32456
2 changed files with 8 additions and 4 deletions
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.121 1998/01/07 09:26:29 dyson Exp $
|
||||
* $Id: vfs_subr.c,v 1.122 1998/01/12 01:46:30 dyson Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -373,8 +373,10 @@ getnewvnode(tag, mp, vops, vpp)
|
|||
|
||||
for (vp = TAILQ_FIRST(&vnode_tobefree_list); vp; vp = nvp) {
|
||||
nvp = TAILQ_NEXT(vp, v_freelist);
|
||||
vp->v_flag &= ~VTBFREE;
|
||||
TAILQ_REMOVE(&vnode_tobefree_list, vp, v_freelist);
|
||||
TAILQ_INSERT_TAIL(&vnode_tmp_list, vp, v_freelist);
|
||||
vp->v_flag &= ~VTBFREE;
|
||||
freevnodes++;
|
||||
}
|
||||
|
||||
if (wantfreevnodes && freevnodes < wantfreevnodes) {
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.121 1998/01/07 09:26:29 dyson Exp $
|
||||
* $Id: vfs_subr.c,v 1.122 1998/01/12 01:46:30 dyson Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -373,8 +373,10 @@ getnewvnode(tag, mp, vops, vpp)
|
|||
|
||||
for (vp = TAILQ_FIRST(&vnode_tobefree_list); vp; vp = nvp) {
|
||||
nvp = TAILQ_NEXT(vp, v_freelist);
|
||||
vp->v_flag &= ~VTBFREE;
|
||||
TAILQ_REMOVE(&vnode_tobefree_list, vp, v_freelist);
|
||||
TAILQ_INSERT_TAIL(&vnode_tmp_list, vp, v_freelist);
|
||||
vp->v_flag &= ~VTBFREE;
|
||||
freevnodes++;
|
||||
}
|
||||
|
||||
if (wantfreevnodes && freevnodes < wantfreevnodes) {
|
||||
|
|
Loading…
Reference in a new issue