zfs_vnode_forget: dispose of larvae vnode using public vfs api (mostly)

Reviewed by:	kib
MFC after:	19 days
This commit is contained in:
Andriy Gapon 2012-11-04 14:24:00 +00:00
parent a16e534dbe
commit 71900cfaf7

View File

@ -633,12 +633,11 @@ static void
zfs_vnode_forget(vnode_t *vp)
{
VOP_UNLOCK(vp, 0);
VI_LOCK(vp);
vp->v_usecount--;
vp->v_iflag |= VI_DOOMED;
/* copied from insmntque_stddtr */
vp->v_data = NULL;
vdropl(vp);
vp->v_op = &dead_vnodeops;
vgone(vp);
vput(vp);
}
/*