Lines Matching refs:dvp

92 tmpfs_lookup1(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp)  in tmpfs_lookup1()  argument
100 dnode = VP_TO_TMPFS_DIR(dvp); in tmpfs_lookup1()
114 tm = VFS_TO_TMPFS(dvp->v_mount); in tmpfs_lookup1()
117 error = vn_vget_ino_gen(dvp, tmpfs_vn_get_ino_alloc, in tmpfs_lookup1()
123 VREF(dvp); in tmpfs_lookup1()
124 *vpp = dvp; in tmpfs_lookup1()
143 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, in tmpfs_lookup1()
181 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, in tmpfs_lookup1()
187 error = tmpfs_alloc_vp(dvp->v_mount, tnode, in tmpfs_lookup1()
193 VOP_ACCESS(dvp, VADMIN, cnp->cn_cred, in tmpfs_lookup1()
202 error = tmpfs_alloc_vp(dvp->v_mount, tnode, in tmpfs_lookup1()
215 if ((cnp->cn_flags & MAKEENTRY) != 0 && tmpfs_use_nc(dvp)) in tmpfs_lookup1()
216 cache_enter(dvp, *vpp, cnp); in tmpfs_lookup1()
245 struct vnode *dvp = v->a_dvp; in tmpfs_lookup() local
251 error = vn_dir_check_exec(dvp, cnp); in tmpfs_lookup()
255 return (tmpfs_lookup1(dvp, vpp, cnp)); in tmpfs_lookup()
261 struct vnode *dvp = v->a_dvp; in tmpfs_create() local
269 error = tmpfs_alloc_file(dvp, vpp, vap, cnp, NULL); in tmpfs_create()
270 if (error == 0 && (cnp->cn_flags & MAKEENTRY) != 0 && tmpfs_use_nc(dvp)) in tmpfs_create()
271 cache_enter(dvp, *vpp, cnp); in tmpfs_create()
278 struct vnode *dvp = v->a_dvp; in tmpfs_mknod() local
287 return (tmpfs_alloc_file(dvp, vpp, vap, cnp, NULL)); in tmpfs_mknod()
739 struct vnode *dvp = v->a_dvp; in tmpfs_remove() local
753 dnode = VP_TO_TMPFS_DIR(dvp); in tmpfs_remove()
768 tmpfs_dir_detach(dvp, de); in tmpfs_remove()
770 tmpfs_dir_whiteout_add(dvp, v->a_cnp); in tmpfs_remove()
788 struct vnode *dvp = v->a_tdvp; in tmpfs_link() local
796 MPASS(dvp != vp); /* XXX When can this be false? */ in tmpfs_link()
821 tmpfs_dir_whiteout_remove(dvp, cnp); in tmpfs_link()
822 tmpfs_dir_attach(dvp, de); in tmpfs_link()
1297 struct vnode *dvp = v->a_dvp; in tmpfs_mkdir() local
1304 return (tmpfs_alloc_file(dvp, vpp, vap, cnp, NULL)); in tmpfs_mkdir()
1310 struct vnode *dvp = v->a_dvp; in tmpfs_rmdir() local
1319 tmp = VFS_TO_TMPFS(dvp->v_mount); in tmpfs_rmdir()
1320 dnode = VP_TO_TMPFS_DIR(dvp); in tmpfs_rmdir()
1355 tmpfs_dir_detach(dvp, de); in tmpfs_rmdir()
1357 tmpfs_dir_whiteout_add(dvp, v->a_cnp); in tmpfs_rmdir()
1374 if (tmpfs_use_nc(dvp)) { in tmpfs_rmdir()
1375 cache_vop_rmdir(dvp, vp); in tmpfs_rmdir()
1387 tmpfs_update(dvp); in tmpfs_rmdir()
1398 struct vnode *dvp = v->a_dvp; in tmpfs_symlink() local
1410 return (tmpfs_alloc_file(dvp, vpp, vap, cnp, target)); in tmpfs_symlink()
1709 struct vnode *dvp = ap->a_dvp; in tmpfs_whiteout() local
1717 de = tmpfs_dir_lookup(VP_TO_TMPFS_DIR(dvp), NULL, cnp); in tmpfs_whiteout()
1720 return (tmpfs_dir_whiteout_add(dvp, cnp)); in tmpfs_whiteout()
1722 tmpfs_dir_whiteout_remove(dvp, cnp); in tmpfs_whiteout()
1748 struct tmpfs_node *tnp, char *buf, size_t *buflen, struct vnode **dvp) in tmpfs_vptocnp_fill() argument
1754 dvp); in tmpfs_vptocnp_fill()
1769 if (vp != *dvp) in tmpfs_vptocnp_fill()
1770 VOP_UNLOCK(*dvp); in tmpfs_vptocnp_fill()
1772 if (vp != *dvp) in tmpfs_vptocnp_fill()
1773 vput(*dvp); in tmpfs_vptocnp_fill()
1783 struct vnode *vp, **dvp; in tmpfs_vptocnp() local
1792 dvp = ap->a_vpp; in tmpfs_vptocnp()
1804 buflen, dvp); in tmpfs_vptocnp()
1831 dvp); in tmpfs_vptocnp()