Lines Matching refs:uvp
98 struct vnode *dvp, *udvp, *ldvp, *vp, *uvp, *lvp, *dtmpvp; in unionfs_lookup() local
117 vp = uvp = lvp = NULLVP; in unionfs_lookup()
281 uerror = VOP_LOOKUP(udvp, &uvp, cnp); in unionfs_lookup()
283 if (uvp != NULLVP) in unionfs_lookup()
284 VOP_UNLOCK(uvp); in unionfs_lookup()
290 if (udvp == uvp) { /* is dot */ in unionfs_lookup()
293 vrele(uvp); in unionfs_lookup()
299 } else if (uvp != NULLVP) in unionfs_lookup()
300 VOP_UNLOCK(uvp); in unionfs_lookup()
326 if (uvp == NULLVP && lvp == NULLVP) { in unionfs_lookup()
334 if (uvp != NULLVP && lvp != NULLVP && uvp->v_type != lvp->v_type) { in unionfs_lookup()
385 if (uvp != NULLVP) in unionfs_lookup()
391 error = unionfs_nodeget(dvp->v_mount, uvp, lvp, in unionfs_lookup()
412 if (uvp != NULLVP) in unionfs_lookup()
413 vrele(uvp); in unionfs_lookup()
643 struct vnode *uvp; in unionfs_open() local
676 uvp = unp->un_uppervp; in unionfs_open()
683 targetvp = uvp; in unionfs_open()
692 if (uvp == NULLVP) { in unionfs_open()
700 targetvp = uvp = unp->un_uppervp; in unionfs_open()
704 targetvp = uvp; in unionfs_open()
707 if (targetvp == uvp && uvp->v_type == VDIR && lvp != NULLVP && in unionfs_open()
710 else if (targetvp == lvp && uvp != NULLVP) in unionfs_open()
735 if (targetvp == uvp) { in unionfs_open()
751 unionfs_forward_vop_start(uvp, &lkflags); in unionfs_open()
752 VOP_CLOSE(uvp, ap->a_mode, cred, td); in unionfs_open()
753 if (unionfs_forward_vop_finish(vp, uvp, lkflags)) in unionfs_open()
788 struct vnode *uvp; in unionfs_close() local
816 uvp = unp->un_uppervp; in unionfs_close()
825 if (uvp != NULLVP) in unionfs_close()
826 ovp = uvp; in unionfs_close()
830 ovp = uvp; in unionfs_close()
834 if (ovp == lvp && uvp != NULLVP) { in unionfs_close()
859 if (ovp == uvp) { in unionfs_close()
950 struct vnode *uvp; in unionfs_access() local
963 uvp = unp->un_uppervp; in unionfs_access()
981 if (uvp != NULLVP) { in unionfs_access()
982 error = VOP_ACCESS(uvp, accmode, ap->a_cred, td); in unionfs_access()
1031 struct vnode *uvp; in unionfs_getattr() local
1043 uvp = unp->un_uppervp; in unionfs_getattr()
1047 if (uvp != NULLVP) { in unionfs_getattr()
1048 if ((error = VOP_GETATTR(uvp, ap->a_vap, ap->a_cred)) == 0) in unionfs_getattr()
1086 struct vnode *uvp; in unionfs_setattr() local
1098 uvp = unp->un_uppervp; in unionfs_setattr()
1109 if (uvp == NULLVP && lvp->v_type == VREG) { in unionfs_setattr()
1114 uvp = unp->un_uppervp; in unionfs_setattr()
1117 if (uvp != NULLVP) { in unionfs_setattr()
1119 unionfs_forward_vop_start(uvp, &lkflags); in unionfs_setattr()
1120 error = VOP_SETATTR(uvp, vap, ap->a_cred); in unionfs_setattr()
1121 unionfs_forward_vop_finish(ap->a_vp, uvp, lkflags); in unionfs_setattr()
1267 struct vnode *uvp; in unionfs_remove() local
1287 uvp = unp->un_uppervp; in unionfs_remove()
1295 if (uvp != NULLVP) { in unionfs_remove()
1301 uvp, &uvp_lkflags); in unionfs_remove()
1302 error = VOP_REMOVE(udvp, uvp, cnp); in unionfs_remove()
1304 ap->a_vp, uvp, uvp_lkflags); in unionfs_remove()
1321 struct vnode *uvp; in unionfs_link() local
1335 uvp = NULLVP; in unionfs_link()
1355 uvp = unp->un_uppervp; in unionfs_link()
1360 uvp, &uvp_lkflags); in unionfs_link()
1361 error = VOP_LINK(udvp, uvp, cnp); in unionfs_link()
1363 ap->a_vp, uvp, uvp_lkflags); in unionfs_link()
1631 struct vnode *uvp; in unionfs_mkdir() local
1660 error = VOP_MKDIR(udvp, &uvp, cnp, ap->a_vap); in unionfs_mkdir()
1667 VOP_UNLOCK(uvp); in unionfs_mkdir()
1669 error = unionfs_nodeget(dvp->v_mount, uvp, NULLVP, in unionfs_mkdir()
1671 vrele(uvp); in unionfs_mkdir()
1674 vput(uvp); in unionfs_mkdir()
1692 struct vnode *uvp; in unionfs_rmdir() local
1707 uvp = unp->un_uppervp; in unionfs_rmdir()
1713 if (udvp == uvp) in unionfs_rmdir()
1716 if (uvp != NULLVP) { in unionfs_rmdir()
1759 uvp, &uvp_lkflags); in unionfs_rmdir()
1760 error = VOP_RMDIR(udvp, uvp, cnp); in unionfs_rmdir()
1762 ap->a_vp, uvp, uvp_lkflags); in unionfs_rmdir()
1784 struct vnode *uvp; in unionfs_symlink() local
1802 error = VOP_SYMLINK(udvp, &uvp, cnp, ap->a_vap, ap->a_target); in unionfs_symlink()
1809 VOP_UNLOCK(uvp); in unionfs_symlink()
1811 error = unionfs_nodeget(ap->a_dvp->v_mount, uvp, NULLVP, in unionfs_symlink()
1813 vrele(uvp); in unionfs_symlink()
1816 vput(uvp); in unionfs_symlink()
1831 struct vnode *uvp; in unionfs_readdir() local
1852 uvp = NULLVP; in unionfs_readdir()
1871 uvp = unp->un_uppervp; in unionfs_readdir()
1875 if ((uvp != NULLVP && unsp->uns_upper_opencnt <= 0) || in unionfs_readdir()
1886 if (uvp != NULLVP && lvp != NULLVP) { in unionfs_readdir()
1887 if ((error = VOP_GETATTR(uvp, &va, ap->a_cred)) != 0) in unionfs_readdir()
1894 if (uvp != NULLVP && lvp == NULLVP) { in unionfs_readdir()
1895 unionfs_forward_vop_start(uvp, &lkflags); in unionfs_readdir()
1896 error = VOP_READDIR(uvp, uio, ap->a_cred, ap->a_eofflag, in unionfs_readdir()
1898 if (unionfs_forward_vop_finish(vp, uvp, lkflags)) in unionfs_readdir()
1907 if (uvp == NULLVP && lvp != NULLVP) { in unionfs_readdir()
1922 KASSERT(uvp != NULLVP, ("unionfs_readdir: null upper vp")); in unionfs_readdir()
1930 unionfs_forward_vop_start(uvp, &lkflags); in unionfs_readdir()
1931 error = VOP_READDIR(uvp, uio, ap->a_cred, &eofflag, in unionfs_readdir()
1933 if (unionfs_forward_vop_finish(vp, uvp, lkflags) && error == 0) in unionfs_readdir()
2056 struct vnode *uvp; in unionfs_getwritemount() local
2064 uvp = NULLVP; in unionfs_getwritemount()
2069 uvp = unp->un_uppervp; in unionfs_getwritemount()
2076 if (uvp == NULLVP && unp != NULL) { in unionfs_getwritemount()
2088 uvp = unp->un_uppervp; in unionfs_getwritemount()
2089 if (uvp == NULLVP) in unionfs_getwritemount()
2093 if (uvp != NULLVP) { in unionfs_getwritemount()
2094 vholdnz(uvp); in unionfs_getwritemount()
2096 error = VOP_GETWRITEMOUNT(uvp, ap->a_mpp); in unionfs_getwritemount()
2097 vdrop(uvp); in unionfs_getwritemount()
2301 struct vnode *uvp; in unionfs_advlock() local
2315 uvp = unp->un_uppervp; in unionfs_advlock()
2317 if (uvp == NULLVP) { in unionfs_advlock()
2321 uvp = unp->un_uppervp; in unionfs_advlock()
2326 error = VOP_OPEN(uvp, unsp->uns_lower_openmode, in unionfs_advlock()
2340 error = VOP_ADVLOCK(uvp, ap->a_id, ap->a_op, ap->a_fl, ap->a_flags); in unionfs_advlock()
2401 struct vnode *uvp; in unionfs_setacl() local
2412 uvp = unp->un_uppervp; in unionfs_setacl()
2419 if (uvp == NULLVP && lvp->v_type == VREG) { in unionfs_setacl()
2422 uvp = unp->un_uppervp; in unionfs_setacl()
2425 if (uvp != NULLVP) { in unionfs_setacl()
2427 unionfs_forward_vop_start(uvp, &lkflags); in unionfs_setacl()
2428 error = VOP_SETACL(uvp, ap->a_type, ap->a_aclp, ap->a_cred, td); in unionfs_setacl()
2429 unionfs_forward_vop_finish(ap->a_vp, uvp, lkflags); in unionfs_setacl()
2559 struct vnode *uvp; in unionfs_setextattr() local
2570 uvp = unp->un_uppervp; in unionfs_setextattr()
2592 if (uvp == NULLVP && in unionfs_setextattr()
2605 uvp = unp->un_uppervp; in unionfs_setextattr()
2606 if ((error = VOP_OPENEXTATTR(uvp, cred, td)) != 0) in unionfs_setextattr()
2610 ovp = uvp; in unionfs_setextattr()
2613 if (ovp == uvp) { in unionfs_setextattr()
2654 struct vnode *uvp; in unionfs_deleteextattr() local
2665 uvp = unp->un_uppervp; in unionfs_deleteextattr()
2687 if (uvp == NULLVP && in unionfs_deleteextattr()
2700 uvp = unp->un_uppervp; in unionfs_deleteextattr()
2701 if ((error = VOP_OPENEXTATTR(uvp, cred, td)) != 0) in unionfs_deleteextattr()
2705 ovp = uvp; in unionfs_deleteextattr()
2708 if (ovp == uvp) in unionfs_deleteextattr()
2722 struct vnode *uvp; in unionfs_setlabel() local
2733 uvp = unp->un_uppervp; in unionfs_setlabel()
2740 if (uvp == NULLVP && lvp->v_type == VREG) { in unionfs_setlabel()
2743 uvp = unp->un_uppervp; in unionfs_setlabel()
2746 if (uvp != NULLVP) in unionfs_setlabel()
2747 error = VOP_SETLABEL(uvp, ap->a_label, ap->a_cred, td); in unionfs_setlabel()
2793 struct vnode *dvp, *vp, **vpp, *lvp, *uvp, *tvp, *tdvp, *tempvp; in unionfs_vput_pair() local
2801 uvp = NULLVP; in unionfs_vput_pair()
2824 uvp = unp->un_uppervp; in unionfs_vput_pair()
2826 if (uvp != NULLVP) in unionfs_vput_pair()
2827 tvp = uvp; in unionfs_vput_pair()
2841 if (uvp != NULLVP) in unionfs_vput_pair()
2842 vhold(uvp); in unionfs_vput_pair()
2882 error = unionfs_nodeget(mp, uvp, lvp, dvp, &tempvp, NULL); in unionfs_vput_pair()
2892 if (uvp != NULLVP) in unionfs_vput_pair()
2893 vdrop(uvp); in unionfs_vput_pair()