Lines Matching refs:NULLVP
117 vp = uvp = lvp = NULLVP; in unionfs_lookup()
119 *(ap->a_vpp) = NULLVP; in unionfs_lookup()
162 if (LOOKUP != nameiop && udvp == NULLVP) { in unionfs_lookup()
173 if (udvp != NULLVP) in unionfs_lookup()
189 if (vp != NULLVP) in unionfs_lookup()
205 *(ap->a_vpp) = NULLVP; in unionfs_lookup()
222 if (ldvp != NULLVP && !(cnflags & DOWHITEOUT)) { in unionfs_lookup()
226 if (udvp != NULLVP) { in unionfs_lookup()
238 if (udvp == NULLVP) in unionfs_lookup()
241 if (udvp == NULLVP && in unionfs_lookup()
243 if (lvp != NULLVP) in unionfs_lookup()
249 if (udvp == NULLVP) in unionfs_lookup()
259 } else if (lvp != NULLVP) in unionfs_lookup()
263 if (udvp != NULLVP) { in unionfs_lookup()
277 if (udvp != NULLVP) { in unionfs_lookup()
283 if (uvp != NULLVP) in unionfs_lookup()
291 if (lvp != NULLVP) in unionfs_lookup()
299 } else if (uvp != NULLVP) in unionfs_lookup()
311 if (iswhiteout && lvp != NULLVP) { in unionfs_lookup()
313 lvp = NULLVP; in unionfs_lookup()
326 if (uvp == NULLVP && lvp == NULLVP) { in unionfs_lookup()
327 error = (udvp != NULLVP ? uerror : lerror); in unionfs_lookup()
334 if (uvp != NULLVP && lvp != NULLVP && uvp->v_type != lvp->v_type) { in unionfs_lookup()
336 lvp = NULLVP; in unionfs_lookup()
342 if (uerror != 0 && uerror != EJUSTRETURN && udvp != NULLVP && in unionfs_lookup()
343 lerror == 0 && lvp != NULLVP && lvp->v_type == VDIR && in unionfs_lookup()
347 error = unionfs_nodeget(dvp->v_mount, NULLVP, lvp, dvp, &vp, in unionfs_lookup()
385 if (uvp != NULLVP) in unionfs_lookup()
412 if (uvp != NULLVP) in unionfs_lookup()
414 if (lvp != NULLVP) in unionfs_lookup()
419 cache_enter(dvp, NULLVP, cnp); in unionfs_lookup()
447 if (udvp != NULLVP) { in unionfs_create()
460 error = unionfs_nodeget(ap->a_dvp->v_mount, vp, NULLVP, in unionfs_create()
489 if (udvp != NULLVP) { in unionfs_whiteout()
528 if (udvp != NULLVP) { in unionfs_mknod()
541 error = unionfs_nodeget(ap->a_dvp->v_mount, vp, NULLVP, in unionfs_mknod()
614 lvp = NULLVP; in unionfs_lock_lvp()
659 targetvp = NULLVP; in unionfs_open()
689 targetvp = NULLVP; in unionfs_open()
691 if (targetvp == NULLVP) { in unionfs_open()
692 if (uvp == NULLVP) { 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()
716 if (lvp == NULLVP) { in unionfs_open()
739 if (lvp == NULLVP) { in unionfs_open()
825 if (uvp != NULLVP) in unionfs_close()
834 if (ovp == lvp && uvp != NULLVP) { in unionfs_close()
838 if (lvp == NULLVP) { in unionfs_close()
864 if (lvp == NULLVP) { in unionfs_close()
981 if (uvp != NULLVP) { in unionfs_access()
989 if (lvp != NULLVP) { in unionfs_access()
1047 if (uvp != NULLVP) { in unionfs_getattr()
1109 if (uvp == NULLVP && lvp->v_type == VREG) { in unionfs_setattr()
1117 if (uvp != NULLVP) { in unionfs_setattr()
1141 tvp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); in unionfs_read()
1163 tvp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); in unionfs_write()
1193 if (ovp == NULLVP) in unionfs_ioctl()
1220 if (ovp == NULLVP) in unionfs_poll()
1249 if (ovp == NULLVP) in unionfs_fsync()
1292 if (udvp == NULLVP) in unionfs_remove()
1295 if (uvp != NULLVP) { in unionfs_remove()
1298 lvp != NULLVP) in unionfs_remove()
1305 } else if (lvp != NULLVP) { in unionfs_remove()
1335 uvp = NULLVP; in unionfs_link()
1339 if (udvp == NULLVP) in unionfs_link()
1344 if (unp->un_uppervp == NULLVP) { in unionfs_link()
1408 (tvp != NULLVP && fvp->v_mount != tvp->v_mount)) { in unionfs_rename()
1421 if (tvp != NULLVP) in unionfs_rename()
1436 if (unp->un_uppervp == NULLVP) { in unionfs_rename()
1463 if (unp->un_uppervp == NULLVP) { in unionfs_rename()
1466 if (tvp != NULLVP) in unionfs_rename()
1499 else if (unp->un_uppervp == NULLVP) { in unionfs_rename()
1517 if (tvp != NULLVP) in unionfs_rename()
1529 if (unp->un_lowervp != NULLVP) in unionfs_rename()
1542 if (unp->un_uppervp == NULLVP) { in unionfs_rename()
1549 if (tvp != NULLVP) { in unionfs_rename()
1559 if (unp->un_uppervp == NULLVP) in unionfs_rename()
1560 rtvp = NULLVP; in unionfs_rename()
1577 if (rtvp != NULLVP && rtvp->v_type == VDIR) in unionfs_rename()
1585 if (tvp != rtvp && tvp != NULLVP) { in unionfs_rename()
1586 if (rtvp == NULLVP) in unionfs_rename()
1604 if (tvp != NULLVP) { in unionfs_rename()
1610 if (tvp != rtvp && rtvp != NULLVP) in unionfs_rename()
1647 if (udvp != NULLVP) { in unionfs_mkdir()
1669 error = unionfs_nodeget(dvp->v_mount, uvp, NULLVP, in unionfs_mkdir()
1710 if (udvp == NULLVP) in unionfs_rmdir()
1716 if (uvp != NULLVP) { in unionfs_rmdir()
1717 if (lvp != NULLVP) { in unionfs_rmdir()
1755 if (ump->um_whitemode == UNIONFS_WHITE_ALWAYS || lvp != NULLVP) in unionfs_rmdir()
1763 } else if (lvp != NULLVP) { in unionfs_rmdir()
1798 if (udvp != NULLVP) { in unionfs_symlink()
1811 error = unionfs_nodeget(ap->a_dvp->v_mount, uvp, NULLVP, in unionfs_symlink()
1852 uvp = NULLVP; in unionfs_readdir()
1853 lvp = NULLVP; in unionfs_readdir()
1875 if ((uvp != NULLVP && unsp->uns_upper_opencnt <= 0) || in unionfs_readdir()
1876 (lvp != NULLVP && unsp->uns_lower_opencnt <= 0)) { in unionfs_readdir()
1886 if (uvp != NULLVP && lvp != NULLVP) { in unionfs_readdir()
1890 lvp = NULLVP; in unionfs_readdir()
1894 if (uvp != NULLVP && lvp == NULLVP) { in unionfs_readdir()
1907 if (uvp == NULLVP && lvp != NULLVP) { in unionfs_readdir()
1922 KASSERT(uvp != NULLVP, ("unionfs_readdir: null upper vp")); in unionfs_readdir()
1923 KASSERT(lvp != NULLVP, ("unionfs_readdir: null lower vp")); in unionfs_readdir()
2043 vp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); in unionfs_readlink()
2064 uvp = NULLVP; in unionfs_getwritemount()
2076 if (uvp == NULLVP && unp != NULL) { in unionfs_getwritemount()
2089 if (uvp == NULLVP) in unionfs_getwritemount()
2093 if (uvp != NULLVP) { in unionfs_getwritemount()
2144 if (unp->un_uppervp != NULLVP) in unionfs_print()
2146 if (unp->un_lowervp != NULLVP) in unionfs_print()
2235 if (unp == NULL || unp->un_uppervp != NULLVP) { in unionfs_lock()
2290 vp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); in unionfs_pathconf()
2317 if (uvp == NULLVP) { in unionfs_advlock()
2363 vp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); in unionfs_strategy()
2366 if (vp == NULLVP) in unionfs_strategy()
2386 vp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); in unionfs_getacl()
2419 if (uvp == NULLVP && lvp->v_type == VREG) { in unionfs_setacl()
2425 if (uvp != NULLVP) { in unionfs_setacl()
2449 vp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); in unionfs_aclcheck()
2470 tvp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); in unionfs_openextattr()
2505 tvp = NULLVP; in unionfs_closeextattr()
2512 if (tvp == NULLVP) in unionfs_closeextattr()
2541 vp = NULLVP; in unionfs_getextattr()
2548 if (vp == NULLVP) in unionfs_getextattr()
2572 ovp = NULLVP; in unionfs_setextattr()
2587 if (ovp == NULLVP) in unionfs_setextattr()
2592 if (uvp == NULLVP && in unionfs_setextattr()
2636 vp = NULLVP; in unionfs_listextattr()
2643 if (vp == NULLVP) in unionfs_listextattr()
2667 ovp = NULLVP; in unionfs_deleteextattr()
2682 if (ovp == NULLVP) in unionfs_deleteextattr()
2687 if (uvp == NULLVP && in unionfs_deleteextattr()
2740 if (uvp == NULLVP && lvp->v_type == VREG) { in unionfs_setlabel()
2746 if (uvp != NULLVP) in unionfs_setlabel()
2799 vp = NULLVP; in unionfs_vput_pair()
2800 lvp = NULLVP; in unionfs_vput_pair()
2801 uvp = NULLVP; in unionfs_vput_pair()
2802 tvp = NULLVP; in unionfs_vput_pair()
2822 if (vp != NULLVP) { in unionfs_vput_pair()
2826 if (uvp != NULLVP) in unionfs_vput_pair()
2841 if (uvp != NULLVP) in unionfs_vput_pair()
2843 if (lvp != NULLVP) in unionfs_vput_pair()
2853 if (tdvp == dunp->un_uppervp && tvp != NULLVP && tvp == lvp) { in unionfs_vput_pair()
2858 res = VOP_VPUT_PAIR(tdvp, tvp != NULLVP ? &tvp : NULL, true); in unionfs_vput_pair()
2868 if (vp != NULLVP && ap->a_unlock_vp) in unionfs_vput_pair()
2872 if (vp == NULLVP || ap->a_unlock_vp) in unionfs_vput_pair()
2890 if (lvp != NULLVP) in unionfs_vput_pair()
2892 if (uvp != NULLVP) in unionfs_vput_pair()