vrefl: Assert that the interlock is held.

Sponsored by:	Dell EMC Isilon
MFC after:	2 weeks
This commit is contained in:
bdrewery 2016-10-06 18:10:19 +00:00
parent f3e00c4570
commit fc32cf9f50

View File

@ -2641,6 +2641,7 @@ void
vrefl(struct vnode *vp)
{
ASSERT_VI_LOCKED(vp, __func__);
CTR2(KTR_VFS, "%s: vp %p", __func__, vp);
_vhold(vp, true);
v_incr_usecount_locked(vp);