vfs: retire vholdl as a symbol
Similarly to vrefl in r364283.
This commit is contained in:
parent
2b4632aee9
commit
b1a824b684
@ -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)
|
||||
{
|
||||
|
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user