aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-08-12 04:53:20 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-08-12 04:53:20 +0000
commit36f47512d99f79470147d779e58b55635c1f3c18 (patch)
tree0c5e7c68c6a2800dbbcfcc040370ae21356ca561 /sys/sys/vnode.h
parent4c2d103a02118d40feecc36c9a4276ecc5c0157c (diff)
downloadsrc-36f47512d99f79470147d779e58b55635c1f3c18.tar.gz
src-36f47512d99f79470147d779e58b55635c1f3c18.zip
vfs: inline vrefcnt
Notes
Notes: svn path=/head/; revision=364141
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 55bb0864156e..9d736483d008 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -967,8 +967,13 @@ void vrele(struct vnode *vp);
void vref(struct vnode *vp);
void vrefl(struct vnode *vp);
void vrefact(struct vnode *vp);
-int vrefcnt(struct vnode *vp);
void v_addpollinfo(struct vnode *vp);
+static __inline int
+vrefcnt(struct vnode *vp)
+{
+
+ return (vp->v_usecount);
+}
int vnode_create_vobject(struct vnode *vp, off_t size, struct thread *td);
void vnode_destroy_vobject(struct vnode *vp);