- 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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157345

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