aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-09-02 19:21:37 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-09-02 19:21:37 +0000
commitb1a824b6848659b6e257cb2a4304f9366a0989a7 (patch)
treea195ec3297be1f6d2aaf93b5fe27cd3ae7ec32dc /sys/sys/vnode.h
parent2b4632aee9744ecd8d8faba119f7b039f2107af6 (diff)
downloadsrc-b1a824b6848659b6e257cb2a4304f9366a0989a7.tar.gz
src-b1a824b6848659b6e257cb2a4304f9366a0989a7.zip
vfs: retire vholdl as a symbol
Similarly to vrefl in r364283.
Notes
Notes: svn path=/head/; revision=365273
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index d4f5f286845d..7edea6c1e588 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -688,7 +688,6 @@ void vget_finish_ref(struct vnode *vp, enum vgetstate vs);
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);
@@ -975,6 +974,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__); \
vref(vp); \