/freebsd-11-stable/sys/fs/tmpfs/ |
H A D | tmpfs_vnops.c | 657 struct vnode *tdvp, struct vnode **tvpp, 665 VOP_UNLOCK(tdvp, 0); 666 if (*tvpp != NULL && *tvpp != tdvp) 675 if (vn_lock(tdvp, LK_EXCLUSIVE | LK_NOWAIT) != 0) { 677 error = vn_lock(tdvp, LK_EXCLUSIVE); 680 VOP_UNLOCK(tdvp, 0); 690 VOP_UNLOCK(tdvp, 0); 701 VOP_UNLOCK(tdvp, 0); 711 if (nvp == tdvp) { 726 de = tmpfs_dir_lookup(VP_TO_TMPFS_DIR(tdvp), NUL 656 tmpfs_rename_relock(struct vnode *fdvp, struct vnode **fvpp, struct vnode *tdvp, struct vnode **tvpp, struct componentname *fcnp, struct componentname *tcnp) argument 786 struct vnode *tdvp = v->a_tdvp; local [all...] |
/freebsd-11-stable/sys/ufs/ufs/ |
H A D | ufs_vnops.c | 946 struct vnode *tdvp = ap->a_tdvp; local 956 if (VTOI(tdvp)->i_effnlink < 2) { 957 print_bad_link_count("ufs_link", tdvp); 983 softdep_setup_link(VTOI(tdvp), ip); 987 error = ufs_direnter(tdvp, vp, &newdir, cnp, NULL, 0); 996 softdep_revert_link(VTOI(tdvp), ip); 1098 struct vnode *tdvp = ap->a_tdvp; local 1119 mp = tdvp->v_mount; 1120 VOP_UNLOCK(tdvp, 0); 1121 if (tvp && tvp != tdvp) [all...] |
/freebsd-11-stable/sys/fs/nandfs/ |
H A D | nandfs_vnops.c | 1349 struct vnode *tdvp = ap->a_tdvp; local 1366 error = nandfs_add_dirent(tdvp, node->nn_ino, cnp->cn_nameptr, 1374 DPRINTF(VNCALL, ("%s: tdvp %p vp %p cnp %p\n", 1375 __func__, tdvp, vp, cnp)); 1518 struct vnode *tdvp = ap->a_tdvp; local 1527 struct nandfs_node *tdnode = VTON(tdvp); 1533 DPRINTF(VNCALL, ("%s: fdvp:%p fvp:%p tdvp:%p tdp:%p\n", __func__, fdvp, 1534 fvp, tdvp, tvp)); 1539 if ((fvp->v_mount != tdvp->v_mount) || 1543 if (tdvp [all...] |
/freebsd-11-stable/sys/fs/msdosfs/ |
H A D | msdosfs_vnops.c | 940 struct vnode *tdvp = ap->a_tdvp; local 968 if (fvp->v_mount != tdvp->v_mount || 972 if (tdvp == tvp) 973 vrele(tdvp); 975 vput(tdvp); 1024 dp = VTODE(tdvp); 1044 if (VTODE(fdvp)->de_StartCluster != VTODE(tdvp)->de_StartCluster) 1060 error = relookup(tdvp, &tvp, tcnp); 1063 dp = VTODE(tdvp); 1082 cache_purge(tdvp); [all...] |
/freebsd-11-stable/sys/fs/fuse/ |
H A D | fuse_vnops.c | 609 struct vnode *tdvp = ap->a_tdvp; local 625 if (vnode_mount(tdvp) != vnode_mount(vp)) { 634 fuse_internal_newentry_makerequest(vnode_mount(tdvp), VTOI(tdvp), cnp, 1429 struct vnode *tdvp = ap->a_tdvp; local 1444 if (fvp->v_mount != tdvp->v_mount || 1458 data = fuse_get_mpdata(vnode_mount(tdvp)); 1460 err = fuse_internal_rename(fdvp, fcnp, tdvp, tcnp); 1462 if (tdvp != fdvp) 1463 fuse_vnode_setparent(fvp, tdvp); [all...] |
H A D | fuse_internal.h | 287 struct vnode *tdvp,
|
H A D | fuse_internal.c | 417 struct vnode *tdvp, 428 fri->newdir = VTOI(tdvp); 415 fuse_internal_rename(struct vnode *fdvp, struct componentname *fcnp, struct vnode *tdvp, struct componentname *tcnp) argument
|
/freebsd-11-stable/sys/fs/nullfs/ |
H A D | null_vnops.c | 595 struct vnode *tdvp = ap->a_tdvp; local 602 if ((fvp->v_mount != tdvp->v_mount) || 604 if (tdvp == tvp) 605 vrele(tdvp); 607 vput(tdvp);
|
/freebsd-11-stable/sys/fs/ext2fs/ |
H A D | ext2_vnops.c | 682 struct vnode *tdvp = ap->a_tdvp; local 704 error = ext2_direnter(ip, tdvp, cnp); 741 struct vnode *tdvp = ap->a_tdvp; local 760 if ((fvp->v_mount != tdvp->v_mount) || 764 if (tdvp == tvp) 765 vrele(tdvp); 767 vput(tdvp); 776 (VTOI(tdvp)->i_flags & APPEND))) { 827 dp = VTOI(tdvp); 867 VREF(tdvp); [all...] |
/freebsd-11-stable/sys/fs/unionfs/ |
H A D | union_vnops.c | 1108 struct vnode *tdvp; local 1131 tdvp = ap->a_tdvp; 1139 rtdvp = tdvp; 1149 if (fvp->v_mount != tdvp->v_mount || 1168 KASSERT_UNIONFS_VNODE(tdvp); 1219 unp = VTOUNIONFS(tdvp); 1221 UNIONFS_INTERNAL_DEBUG("tdvp=%p, utdvp=%p, ltdvp=%p\n", tdvp, unp->un_uppervp, unp->un_lowervp); 1231 if (tdvp == tvp) { 1264 if (tvp != NULLVP && tvp != tdvp) [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zfs_vnops.c | 3507 struct vnode *tdvp, struct vnode **tvpp, 3517 VOP_UNLOCK(tdvp, 0); 3518 if (*tvpp != NULL && *tvpp != tdvp) 3527 error = vn_lock(tdvp, LK_EXCLUSIVE | LK_NOWAIT); 3532 error = vn_lock(tdvp, LK_EXCLUSIVE); 3535 VOP_UNLOCK(tdvp, 0); 3538 tdzp = VTOZ(tdvp); 3562 VOP_UNLOCK(tdvp, 0); 3576 VOP_UNLOCK(tdvp, 0); 3591 VOP_UNLOCK(tdvp, 3506 zfs_rename_relock(struct vnode *sdvp, struct vnode **svpp, struct vnode *tdvp, struct vnode **tvpp, const struct componentname *scnp, const struct componentname *tcnp) argument 3748 zfs_rename(vnode_t *sdvp, vnode_t **svpp, struct componentname *scnp, vnode_t *tdvp, vnode_t **tvpp, struct componentname *tcnp, cred_t *cr) argument 4183 zfs_link(vnode_t *tdvp, vnode_t *svp, char *name, cred_t *cr, caller_context_t *ct, int flags) argument 5292 vnode_t *tdvp = ap->a_tdvp; local 5355 vnode_t *tdvp = ap->a_tdvp; local [all...] |
/freebsd-11-stable/sys/fs/smbfs/ |
H A D | smbfs_vnops.c | 626 struct vnode *tdvp = ap->a_tdvp; local 635 if ((fvp->v_mount != tdvp->v_mount) || 660 error = smbfs_smb_move(VTOSMB(fvp), VTOSMB(tdvp), 674 error = smbfs_smb_rename(VTOSMB(fvp), VTOSMB(tdvp), 680 cache_purge(tdvp); 686 smbfs_attr_cacheremove(tdvp); 689 if (tdvp == tvp) 690 vrele(tdvp); 692 vput(tdvp);
|
/freebsd-11-stable/sys/fs/nfsclient/ |
H A D | nfs_clvnops.c | 203 char *fnameptr, int fnamelen, struct vnode *tdvp, struct vnode *tvp, 1755 struct vnode *tdvp = ap->a_tdvp; local 1766 if ((fvp->v_mount != tdvp->v_mount) || 1806 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) { 1812 tdvp, tvp, tcnp->cn_nameptr, tcnp->cn_namelen, tcnp->cn_cred, 1815 if (error == 0 && NFS_ISV4(tdvp)) { 1859 cache_purge(tdvp); 1864 if (tdvp == tvp) 1865 vrele(tdvp); 1867 vput(tdvp); 1897 nfs_renamerpc(struct vnode *fdvp, struct vnode *fvp, char *fnameptr, int fnamelen, struct vnode *tdvp, struct vnode *tvp, char *tnameptr, int tnamelen, struct ucred *cred, struct thread *td) argument 1941 struct vnode *tdvp = ap->a_tdvp; local [all...] |
H A D | nfs_clrpcops.c | 2354 vnode_t tdvp, vnode_t tvp, char *tnameptr, int tnamelen, struct ucred *cred, 2432 (void) nfsm_fhtom(nd, VTONFS(tdvp)->n_fhp->nfh_fh, 2433 VTONFS(tdvp)->n_fhp->nfh_len, 0); 2443 (void) nfsm_fhtom(nd, VTONFS(tdvp)->n_fhp->nfh_fh, 2444 VTONFS(tdvp)->n_fhp->nfh_len, 0); 2497 error = nfscl_wcc_data(nd, tdvp, tnap, tattrflagp, 2353 nfsrpc_rename(vnode_t fdvp, vnode_t fvp, char *fnameptr, int fnamelen, vnode_t tdvp, vnode_t tvp, char *tnameptr, int tnamelen, struct ucred *cred, NFSPROC_T *p, struct nfsvattr *fnap, struct nfsvattr *tnap, int *fattrflagp, int *tattrflagp, void *fstuff, void *tstuff) argument
|
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | vnode.h | 81 #define vn_renamepath(tdvp, svp, tnm, lentnm) do { } while (0)
|
/freebsd-11-stable/sys/kern/ |
H A D | vfs_syscalls.c | 3202 struct vnode *tvp, *fvp, *tdvp; local 3243 tdvp = tond.ni_dvp; 3251 if (tdvp == tvp) 3252 vrele(tdvp); 3254 vput(tdvp); 3286 if (fvp == tdvp) { 3298 error = mac_vnode_check_rename_to(td->td_ucred, tdvp, 3299 tond.ni_vp, fromnd.ni_dvp == tdvp, &tond.ni_cnd); 3312 if (tdvp == tvp) 3313 vrele(tdvp); [all...] |
/freebsd-11-stable/sys/fs/nfsserver/ |
H A D | nfs_nfsdport.c | 1127 struct vnode *fvp, *tvp, *tdvp; local 1137 tdvp = tondp->ni_dvp; 1170 if (fvp->v_mount != tdvp->v_mount) { 1174 if (fvp == tdvp) { 1210 if (tdvp == tvp) 1211 vrele(tdvp); 1213 vput(tdvp);
|