Lines Matching full:lvp
180 unionfs_get_cached_vnode(struct vnode *uvp, struct vnode *lvp, in unionfs_get_cached_vnode() argument
189 else if (lvp != NULLVP) in unionfs_get_cached_vnode()
190 vp = unionfs_get_cached_vnode_locked(lvp, dvp); in unionfs_get_cached_vnode()
463 struct vnode *lvp; in unionfs_noderem() local
484 lvp = unp->un_lowervp; in unionfs_noderem()
499 if (uvp != NULLVP && lvp != NULLVP && (vp->v_vflag & VV_ROOT) == 0) { in unionfs_noderem()
500 vn_lock_pair(uvp, true, LK_EXCLUSIVE, lvp, false, LK_EXCLUSIVE); in unionfs_noderem()
549 vput(lvp); in unionfs_noderem()
550 else if (lvp != NULLVP) in unionfs_noderem()
551 vrele(lvp); in unionfs_noderem()
694 unionfs_create_uppervattr(struct unionfs_mount *ump, struct vnode *lvp, in unionfs_create_uppervattr() argument
700 if ((error = VOP_GETATTR(lvp, &lva, cred))) in unionfs_create_uppervattr()
767 struct vnode *lvp; in unionfs_node_update() local
772 lvp = unp->un_lowervp; in unionfs_node_update()
773 ASSERT_VOP_ELOCKED(lvp, __func__); in unionfs_node_update()
783 lockrec = lvp->v_vnlock->lk_recurse; in unionfs_node_update()
792 VOP_UNLOCK(lvp); in unionfs_node_update()
886 struct vnode *lvp; in unionfs_mkshadowdir() local
916 lvp = unp->un_lowervp; in unionfs_mkshadowdir()
932 if ((error = VOP_GETATTR(lvp, &lva, cnp->cn_cred))) in unionfs_mkshadowdir()
1010 * the unionfs vnode's lock from lvp to uvp; otherwise the in unionfs_mkshadowdir()
1274 struct vnode *lvp; in unionfs_vn_create_on_upper() local
1285 lvp = unp->un_lowervp; in unionfs_vn_create_on_upper()
1290 if ((error = VOP_GETATTR(lvp, &lva, cred)) != 0) in unionfs_vn_create_on_upper()
1344 * Copy from lvp to uvp.
1346 * lvp and uvp should be locked and opened on entry and will be locked and
1350 unionfs_copyfile_core(struct vnode *lvp, struct vnode *uvp, in unionfs_copyfile_core() argument
1380 if ((error = VOP_READ(lvp, &uio, 0, cred)) != 0) in unionfs_copyfile_core()
1428 struct vnode *lvp; in unionfs_copyfile() local
1435 lvp = unp->un_lowervp; in unionfs_copyfile()
1464 error = VOP_ACCESS(lvp, VREAD, cred, td); in unionfs_copyfile()
1479 * uvp below while holding vp[=lvp] locked. Replacing in unionfs_copyfile()
1492 error = VOP_OPEN(lvp, FREAD, cred, td, NULL); in unionfs_copyfile()
1494 error = unionfs_copyfile_core(lvp, uvp, cred, td); in unionfs_copyfile()
1495 VOP_CLOSE(lvp, FREAD, cred, td); in unionfs_copyfile()
1538 struct vnode *lvp; in unionfs_check_rmdir() local
1550 lvp = UNIONFSVPTOLOWERVP(vp); in unionfs_check_rmdir()
1576 ASSERT_VOP_LOCKED(lvp, __func__); in unionfs_check_rmdir()
1585 if ((error = mac_vnode_check_open(cred, lvp, VEXEC | VREAD)) != 0) in unionfs_check_rmdir()
1588 if ((error = VOP_ACCESS(lvp, VEXEC | VREAD, cred, td)) != 0) in unionfs_check_rmdir()
1590 if ((error = VOP_OPEN(lvp, FREAD, cred, td, NULL)) != 0) in unionfs_check_rmdir()
1592 if ((error = VOP_GETATTR(lvp, &va, cred)) != 0) in unionfs_check_rmdir()
1605 error = vn_dir_next_dirent(lvp, td, dirbuf, dirbuflen, in unionfs_check_rmdir()
1660 VOP_CLOSE(lvp, FREAD, cred, td); in unionfs_check_rmdir()