Lines Matching refs:new_dir
1308 struct yaffs_obj *new_dir, in yaffs_change_obj_name() argument
1315 if (new_dir == NULL) in yaffs_change_obj_name()
1316 new_dir = obj->parent; /* use the old directory */ in yaffs_change_obj_name()
1318 if (new_dir->variant_type != YAFFS_OBJECT_TYPE_DIRECTORY) { in yaffs_change_obj_name()
1325 unlink_op = (new_dir == obj->my_dev->unlinked_dir); in yaffs_change_obj_name()
1326 del_op = (new_dir == obj->my_dev->del_dir); in yaffs_change_obj_name()
1328 existing_target = yaffs_find_by_name(new_dir, new_name); in yaffs_change_obj_name()
1337 new_dir->variant_type != YAFFS_OBJECT_TYPE_DIRECTORY) in yaffs_change_obj_name()
1342 yaffs_add_obj_to_dir(new_dir, obj); in yaffs_change_obj_name()
4040 struct yaffs_obj *new_dir, const YCHAR *new_name) in yaffs_rename_obj() argument
4052 if (!new_dir || new_dir->variant_type != YAFFS_OBJECT_TYPE_DIRECTORY) { in yaffs_rename_obj()
4064 if (old_dir == new_dir && in yaffs_rename_obj()
4084 existing_target = yaffs_find_by_name(new_dir, new_name); in yaffs_rename_obj()
4096 yaffs_change_obj_name(obj, new_dir, new_name, force, in yaffs_rename_obj()
4103 result = yaffs_change_obj_name(obj, new_dir, new_name, 1, 0); in yaffs_rename_obj()
4106 if (new_dir != old_dir) in yaffs_rename_obj()
4107 yaffs_update_parent(new_dir); in yaffs_rename_obj()