Lines Matching refs:tond
3704 struct nameidata fromnd, tond;
3737 NDINIT(&tond, DELETE, NOFOLLOW | USEDVP | CN_NBMOUNTLOOK, UIO_SYSSPACE,
3739 tond.ni_dvp = tdvp;
3740 error = namei(&tond);
3744 if (tond.ni_vp->v_type != VREG) {
3745 vnode_put(tond.ni_vp);
3746 nameidone(&tond);
3751 args.a_vp = tond.ni_vp;
3752 args.a_cnp = &tond.ni_cnd;
3756 error = lock_fsnode(tond.ni_vp, NULL);
3761 unlock_fsnode(tond.ni_vp, NULL);
3764 vnode_setneedinactive(tond.ni_vp);
3766 vnode_put(tond.ni_vp);
3767 nameidone(&tond);
3774 NDINIT(&tond, RENAME,
3777 tond.ni_dvp = tdvp;
3778 error = namei(&tond);
3790 a.a_tvp = tond.ni_vp;
3791 a.a_tcnp = &tond.ni_cnd;
3798 if (tond.ni_vp == NULL || tond.ni_vp == fromnd.ni_vp) {
3801 } else if (fromnd.ni_vp < tond.ni_vp) {
3803 lock_second = tond.ni_vp;
3805 lock_first = tond.ni_vp;
3831 if (tond.ni_vp && tond.ni_vp != fromnd.ni_vp)
3832 vnode_setneedinactive(tond.ni_vp);
3846 tond.ni_cnd.cn_nameptr,
3847 tond.ni_cnd.cn_namelen,
3848 tond.ni_cnd.cn_hash,
3854 if (tond.ni_vp) {
3855 vnode_put(tond.ni_vp);
3857 nameidone(&tond);