aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-08-16 18:51:12 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-08-16 18:51:12 +0000
commit6041408826781c05ca74e20c1a184fb6c2dce922 (patch)
tree96990e076ed990a707a78b248080eec9a3c03c4e /sys/sys/vnode.h
parent5faf134cce6109ccc27c6d02aaff27d5a02cf133 (diff)
downloadsrc-6041408826781c05ca74e20c1a184fb6c2dce922.tar.gz
src-6041408826781c05ca74e20c1a184fb6c2dce922.zip
vfs: retire vrefl as a symbol
vrefl calls vref and there is only one in-tree consumer. Keep it as a macro for assertion purposes.
Notes
Notes: svn path=/head/; revision=364283
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 7d87f70da53a..f0576bb094ed 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -965,7 +965,6 @@ do { \
void vput(struct vnode *vp);
void vrele(struct vnode *vp);
void vref(struct vnode *vp);
-void vrefl(struct vnode *vp);
void vrefact(struct vnode *vp);
void v_addpollinfo(struct vnode *vp);
static __inline int
@@ -975,6 +974,11 @@ vrefcnt(struct vnode *vp)
return (vp->v_usecount);
}
+#define vrefl(vp) do { \
+ ASSERT_VI_LOCKED(vp, __func__); \
+ vref(vp); \
+} while (0)
+
int vnode_create_vobject(struct vnode *vp, off_t size, struct thread *td);
void vnode_destroy_vobject(struct vnode *vp);