Lines Matching refs:new_src
287 struct bkey_i_dirent *new_src = NULL, *new_dst = NULL; in bch2_dirent_rename() local
349 new_src = dirent_create_key(trans, src_dir, 0, src_name, 0); in bch2_dirent_rename()
350 ret = PTR_ERR_OR_ZERO(new_src); in bch2_dirent_rename()
354 dirent_copy_target(new_src, bkey_s_c_to_dirent(old_dst)); in bch2_dirent_rename()
355 new_src->k.p = src_iter.pos; in bch2_dirent_rename()
357 new_src = bch2_trans_kmalloc(trans, sizeof(struct bkey_i)); in bch2_dirent_rename()
358 ret = PTR_ERR_OR_ZERO(new_src); in bch2_dirent_rename()
362 bkey_init(&new_src->k); in bch2_dirent_rename()
363 new_src->k.p = src_iter.pos; in bch2_dirent_rename()
379 new_src = new_dst; in bch2_dirent_rename()
380 new_src->k.p = src_iter.pos; in bch2_dirent_rename()
388 new_src->k.type = KEY_TYPE_hash_whiteout; in bch2_dirent_rename()
398 new_src->k.type = KEY_TYPE_hash_whiteout; in bch2_dirent_rename()
406 new_src->v.d_type == DT_SUBVOL) in bch2_dirent_rename()
407 new_src->v.d_parent_subvol = cpu_to_le32(src_dir.subvol); in bch2_dirent_rename()
424 new_src->k.p.snapshot != old_src.k->p.snapshot; in bch2_dirent_rename()
430 if (!delete_src || !bkey_deleted(&new_src->k)) { in bch2_dirent_rename()
431 ret = bch2_trans_update(trans, &src_iter, &new_src->k_i, src_update_flags); in bch2_dirent_rename()
453 *src_offset = new_src->k.p.offset; in bch2_dirent_rename()