Lines Matching refs:vp2
4186 struct vnode *vp2, bool vp2_locked, int lkflags2) in vn_lock_pair() argument
4194 (vp2 == NULL && lkflags2 == 0)); in vn_lock_pair()
4197 if (vp1 == NULL && vp2 == NULL) in vn_lock_pair()
4200 if (vp1 == vp2) { in vn_lock_pair()
4247 if (vp2 != NULL) { in vn_lock_pair()
4249 (vp2->v_vnlock->lock_object.lo_flags & LK_NOSHARE) != 0) in vn_lock_pair()
4251 if (vp2_locked && VOP_ISLOCKED(vp2) != LK_EXCLUSIVE) { in vn_lock_pair()
4252 ASSERT_VOP_LOCKED(vp2, "vp2"); in vn_lock_pair()
4254 VOP_UNLOCK(vp2); in vn_lock_pair()
4255 ASSERT_VOP_UNLOCKED(vp2, in vn_lock_pair()
4260 ASSERT_VOP_UNLOCKED(vp2, "vp2"); in vn_lock_pair()
4271 if (vp1_locked && vp2 != NULL) { in vn_lock_pair()
4273 error = VOP_LOCK1(vp2, lkflags2 | LK_NOWAIT, in vn_lock_pair()
4281 vn_lock(vp2, lkflags2 | LK_RETRY); in vn_lock_pair()
4285 if (vp2 != NULL) { in vn_lock_pair()
4290 VOP_UNLOCK(vp2); in vn_lock_pair()
4304 if (vp2 != NULL) { in vn_lock_pair()
4306 ASSERT_VOP_ELOCKED(vp2, "vp2 ret"); in vn_lock_pair()
4308 ASSERT_VOP_LOCKED(vp2, "vp2 ret"); in vn_lock_pair()