vfs: retire vholdl as a symbol

Similarly to vrefl in r364283.
This commit is contained in:
Mateusz Guzik 2020-09-02 19:21:37 +00:00
parent 2b4632aee9
commit b1a824b684
2 changed files with 5 additions and 10 deletions

View File

@ -3226,15 +3226,6 @@ vhold(struct vnode *vp)
vn_freevnodes_dec();
}
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)
{

View File

@ -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); \