Now that the vdropl() function is public, assert that the vnode interlock

is held.
This commit is contained in:
Pawel Jakub Dawidek 2007-04-01 10:45:32 +00:00
parent 8ad9c32345
commit def72fbba1

View File

@ -2217,6 +2217,7 @@ void
vdropl(struct vnode *vp)
{
ASSERT_VI_LOCKED(vp, "vdropl");
if (vp->v_holdcnt <= 0)
panic("vdrop: holdcnt %d", vp->v_holdcnt);
vp->v_holdcnt--;