svn commit: r364140 - in head/sys: kern sys
Mateusz Guzik
mjg at FreeBSD.org
Wed Aug 12 04:53:03 UTC 2020
Author: mjg
Date: Wed Aug 12 04:53:02 2020
New Revision: 364140
URL: https://svnweb.freebsd.org/changeset/base/364140
Log:
vfs: garbage collect vrefactn
Modified:
head/sys/kern/vfs_subr.c
head/sys/sys/vnode.h
Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c Wed Aug 12 04:52:35 2020 (r364139)
+++ head/sys/kern/vfs_subr.c Wed Aug 12 04:53:02 2020 (r364140)
@@ -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.
*
Modified: head/sys/sys/vnode.h
==============================================================================
--- head/sys/sys/vnode.h Wed Aug 12 04:52:35 2020 (r364139)
+++ head/sys/sys/vnode.h Wed Aug 12 04:53:02 2020 (r364140)
@@ -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);
More information about the svn-src-all
mailing list