Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2020 19:21:37 +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: r365273 - in head/sys: kern sys
Message-ID:  <202009021921.082JLbAv045264@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Wed Sep  2 19:21:37 2020
New Revision: 365273
URL: https://svnweb.freebsd.org/changeset/base/365273

Log:
  vfs: retire vholdl as a symbol
  
  Similarly to vrefl in r364283.

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 Sep  2 19:21:10 2020	(r365272)
+++ head/sys/kern/vfs_subr.c	Wed Sep  2 19:21:37 2020	(r365273)
@@ -3227,15 +3227,6 @@ vhold(struct vnode *vp)
 }
 
 void
-vholdl(struct vnode *vp)
-{
-
-	ASSERT_VI_LOCKED(vp, __func__);
-	CTR2(KTR_VFS, "%s: vp %p", __func__, vp);
-	vhold(vp);
-}
-
-void
 vholdnz(struct vnode *vp)
 {
 

Modified: head/sys/sys/vnode.h
==============================================================================
--- head/sys/sys/vnode.h	Wed Sep  2 19:21:10 2020	(r365272)
+++ head/sys/sys/vnode.h	Wed Sep  2 19:21:37 2020	(r365273)
@@ -688,7 +688,6 @@ void	vget_finish_ref(struct vnode *vp, enum vgetstate 
 void	vget_abort(struct vnode *vp, enum vgetstate vs);
 void	vgone(struct vnode *vp);
 void	vhold(struct vnode *);
-void	vholdl(struct vnode *);
 void	vholdnz(struct vnode *);
 bool	vhold_smr(struct vnode *);
 void	vinactive(struct vnode *vp);
@@ -974,6 +973,11 @@ vrefcnt(struct vnode *vp)
 
 	return (vp->v_usecount);
 }
+
+#define	vholdl(vp)	do {						\
+	ASSERT_VI_LOCKED(vp, __func__);					\
+	vhold(vp);							\
+} while (0)
 
 #define	vrefl(vp)	do {						\
 	ASSERT_VI_LOCKED(vp, __func__);					\



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