Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 2020 04:53:03 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364140 - in head/sys: kern sys
Message-ID:  <202008120453.07C4r3N1065775@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008120453.07C4r3N1065775>