- 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:
Jeff Roberson 2006-03-31 23:39:26 +00:00
parent ba5eb429e3
commit 0af2472199

View File

@ -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;
/*