- Add an assert to vgone. It is illegal to call vgone without a reference
to the vnode. Without a reference the vnode will never be vdestroy'd and the memory will never be reclaimed. Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
ba5eb429e3
commit
0af2472199
@ -2391,11 +2391,8 @@ vgonel(struct vnode *vp)
|
||||
CTR1(KTR_VFS, "vgonel: vp %p", vp);
|
||||
ASSERT_VOP_LOCKED(vp, "vgonel");
|
||||
ASSERT_VI_LOCKED(vp, "vgonel");
|
||||
#if 0
|
||||
/* XXX Need to fix ttyvp before I enable this. */
|
||||
VNASSERT(vp->v_holdcnt, vp,
|
||||
("vgonel: vp %p has no reference.", vp));
|
||||
#endif
|
||||
td = curthread;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user