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.
This commit is contained in:
parent
5faf134cce
commit
6041408826
@ -2928,15 +2928,6 @@ vref(struct vnode *vp)
|
||||
vget_finish_ref(vp, vs);
|
||||
}
|
||||
|
||||
void
|
||||
vrefl(struct vnode *vp)
|
||||
{
|
||||
|
||||
ASSERT_VI_LOCKED(vp, __func__);
|
||||
CTR2(KTR_VFS, "%s: vp %p", __func__, vp);
|
||||
vref(vp);
|
||||
}
|
||||
|
||||
void
|
||||
vrefact(struct vnode *vp)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user