Lines Matching refs:new_vnode
39 struct Vnode *new_vnode, struct Vnode *new_parent_vnode) in check_rename_target() argument
54 if (new_vnode != NULL && new_vnode->type != old_vnode->type) in check_rename_target()
56 if (new_vnode->type == VNODE_TYPE_DIR) in check_rename_target()
62 if (new_vnode != NULL && new_vnode->useCount != 0) in check_rename_target()
82 if (new_vnode != NULL && ((new_vnode->flag & VNODE_FLAG_MOUNT_ORIGIN) in check_rename_target()
83 || (new_vnode->flag & VNODE_FLAG_MOUNT_NEW))) in check_rename_target()
122 struct Vnode *new_vnode = NULL; in do_rename() local
160 ret = VnodeLookup(fullnewpath, &new_vnode, 0); in do_rename()
163 new_parent_vnode = new_vnode->parent; in do_rename()
167 new_parent_vnode = new_vnode; in do_rename()
168 new_vnode = NULL; in do_rename()
170 ret = check_rename_target(old_vnode, old_parent_vnode, new_vnode, new_parent_vnode); in do_rename()
175 if (old_vnode == new_vnode) in do_rename()
194 VnodeFree(new_vnode); in do_rename()