Home
last modified time | relevance | path

Searched refs:r_v (Results 1 – 3 of 3) sorted by relevance

/linux/fs/bcachefs/
H A Dbkey_cmp.h55 u64 l_v, r_v; in __bkey_cmp_bits() local
63 r_v = *r & (~0ULL >> high_bit_offset); in __bkey_cmp_bits()
68 r_v >>= 64 - nr_key_bits; in __bkey_cmp_bits()
74 if (!nr_key_bits || l_v != r_v) in __bkey_cmp_bits()
81 r_v = *r; in __bkey_cmp_bits()
84 return cmp_int(l_v, r_v); in __bkey_cmp_bits()
H A Dreflink.c346 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()
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()
[all …]
H A Dbkey.c711 u64 l_v, r_v; in bch2_bkey_greatest_differing_bit() local
717 r_v = *r & (~0ULL >> high_bit_offset); in bch2_bkey_greatest_differing_bit()
722 r_v >>= word_bits - nr_key_bits; in bch2_bkey_greatest_differing_bit()
728 if (l_v != r_v) in bch2_bkey_greatest_differing_bit()
729 return fls64(l_v ^ r_v) - 1 + nr_key_bits; in bch2_bkey_greatest_differing_bit()
735 r_v = *r; in bch2_bkey_greatest_differing_bit()