Home
last modified time | relevance | path

Searched refs:new_dst (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Ddirent.c287 struct bkey_i_dirent *new_src = NULL, *new_dst = NULL; in bch2_dirent_rename() local
339 new_dst = dirent_create_key(trans, dst_dir, 0, dst_name, 0); in bch2_dirent_rename()
340 ret = PTR_ERR_OR_ZERO(new_dst); in bch2_dirent_rename()
344 dirent_copy_target(new_dst, bkey_s_c_to_dirent(old_src)); in bch2_dirent_rename()
345 new_dst->k.p = dst_iter.pos; in bch2_dirent_rename()
379 new_src = new_dst; in bch2_dirent_rename()
402 if (new_dst->v.d_type == DT_SUBVOL) in bch2_dirent_rename()
403 new_dst->v.d_parent_subvol = cpu_to_le32(dst_dir.subvol); in bch2_dirent_rename()
409 ret = bch2_trans_update(trans, &dst_iter, &new_dst->k_i, 0); in bch2_dirent_rename()
428 new_dst->k.p.snapshot != old_dst.k->p.snapshot; in bch2_dirent_rename()
[all …]
Dreflink.c434 struct bkey_buf new_dst, new_src; in bch2_remap_range() local
452 bch2_bkey_buf_init(&new_dst); in bch2_remap_range()
534 bkey_reflink_p_init(new_dst.k); in bch2_remap_range()
545 new_dst.k->k.p = dst_iter.pos; in bch2_remap_range()
546 bch2_key_resize(&new_dst.k->k, in bch2_remap_range()
550 ret = bch2_bkey_set_needs_rebalance(c, new_dst.k, &opts) ?: in bch2_remap_range()
552 new_dst.k, &disk_res, in bch2_remap_range()
588 bch2_bkey_buf_exit(&new_dst, c); in bch2_remap_range()