-/*
- * Vnode reference, just increment the count
- */
-void vref(vp)
- struct vnode *vp;
-{
-
- vp->v_count++;
-}
-
-/*
- * Vnode release, just decrement the count and call VOP_INACTIVE()
- */
-void vrele(vp)
- register struct vnode *vp;
-{
-
- if (vp == NULL)
- return;
- vp->v_count--;
- if (vp->v_count < 0)
- printf("inode %d, bad ref count %d\n",
- VTOI(vp)->i_number, vp->v_count);
- if (vp->v_count == 0)
- VOP_INACTIVE(vp);
-}
-
-/*
- * vput(), just unlock and vrele()
- */
-vput(vp)
- register struct vnode *vp;
-{
- VOP_UNLOCK(vp);
- vrele(vp);
-}
-