Lines Matching refs:r_v
346 struct bkey_i *r_v; in bch2_make_extent_indirect() local
361 r_v = bch2_trans_kmalloc(trans, sizeof(__le64) + bkey_bytes(&orig->k)); in bch2_make_extent_indirect()
362 ret = PTR_ERR_OR_ZERO(r_v); in bch2_make_extent_indirect()
366 bkey_init(&r_v->k); in bch2_make_extent_indirect()
367 r_v->k.type = bkey_type_to_indirect(&orig->k); in bch2_make_extent_indirect()
368 r_v->k.p = reflink_iter.pos; in bch2_make_extent_indirect()
369 bch2_key_resize(&r_v->k, orig->k.size); in bch2_make_extent_indirect()
370 r_v->k.bversion = orig->k.bversion; in bch2_make_extent_indirect()
372 set_bkey_val_bytes(&r_v->k, sizeof(__le64) + bkey_val_bytes(&orig->k)); in bch2_make_extent_indirect()
374 refcount = bkey_refcount(bkey_i_to_s(r_v)); in bch2_make_extent_indirect()
378 ret = bch2_trans_update(trans, &reflink_iter, r_v, 0); in bch2_make_extent_indirect()
397 r_p->v.idx = cpu_to_le64(bkey_start_offset(&r_v->k)); in bch2_make_extent_indirect()