vfs: garbage collect vrefactn

This commit is contained in:
Mateusz Guzik
2020-08-12 04:53:02 +00:00
parent 6883f07e97
commit 4c2d103a02
2 changed files with 0 additions and 14 deletions
-13
View File
@@ -2952,19 +2952,6 @@ vrefact(struct vnode *vp)
#endif
}
void
vrefactn(struct vnode *vp, u_int n)
{
CTR2(KTR_VFS, "%s: vp %p", __func__, vp);
#ifdef INVARIANTS
int old = atomic_fetchadd_int(&vp->v_usecount, n);
VNASSERT(old > 0, vp, ("%s: wrong use count %d", __func__, old));
#else
atomic_add_int(&vp->v_usecount, n);
#endif
}
/*
* Return reference count of a vnode.
*
-1
View File
@@ -967,7 +967,6 @@ void vrele(struct vnode *vp);
void vref(struct vnode *vp);
void vrefl(struct vnode *vp);
void vrefact(struct vnode *vp);
void vrefactn(struct vnode *vp, u_int n);
int vrefcnt(struct vnode *vp);
void v_addpollinfo(struct vnode *vp);