Home
last modified time | relevance | path

Searched refs:key_u64s (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dbkey.c69 format->key_u64s, in bch2_bkey_pack_verify()
130 EBUG_ON(state->p >= (u64 *) k->_data + state->format->key_u64s); in pack_state_finish()
242 EBUG_ON(in->u64s - in_f->key_u64s + out_f->key_u64s > U8_MAX); in bch2_bkey_transform_key()
245 out->u64s = out_f->key_u64s + in->u64s - in_f->key_u64s; in bch2_bkey_transform_key()
260 memcpy_u64s((u64 *) out + out_f->key_u64s, in bch2_bkey_transform()
261 (u64 *) in + in_f->key_u64s, in bch2_bkey_transform()
262 (in->u64s - in_f->key_u64s)); in bch2_bkey_transform()
273 EBUG_ON(in->u64s < format->key_u64s); in __bch2_bkey_unpack_key()
275 EBUG_ON(in->u64s - format->key_u64s + BKEY_U64s > U8_MAX); in __bch2_bkey_unpack_key()
277 out.u64s = BKEY_U64s + in->u64s - format->key_u64s; in __bch2_bkey_unpack_key()
[all …]
Dbtree_key_cache.c119 static struct bkey_cached *__bkey_cached_alloc(unsigned key_u64s, gfp_t gfp) in __bkey_cached_alloc() argument
126 ck->k = kmalloc(key_u64s * sizeof(u64), gfp); in __bkey_cached_alloc()
131 ck->u64s = key_u64s; in __bkey_cached_alloc()
136 bkey_cached_alloc(struct btree_trans *trans, struct btree_path *path, unsigned key_u64s) in bkey_cached_alloc() argument
150 __bkey_cached_alloc(key_u64s, _gfp)); in bkey_cached_alloc()
210 unsigned key_u64s = k.k->u64s + 1; in btree_key_cache_create() local
217 key_u64s = min(256U, (key_u64s * 3) / 2); in btree_key_cache_create()
218 key_u64s = roundup_pow_of_two(key_u64s); in btree_key_cache_create()
220 struct bkey_cached *ck = bkey_cached_alloc(trans, path, key_u64s); in btree_key_cache_create()
240 if (unlikely(key_u64s > ck->u64s)) { in btree_key_cache_create()
[all …]
Dbkey.h322 return bkey_packed(k) ? format->key_u64s : BKEY_U64s; in bkeyp_key_u64s()
522 return f->key_u64s - 1; in high_word_offset()
Dbset.c633 shift = (int) (b->format.key_u64s * 64 - b->nr_key_bits) + exponent; in make_bfloat()
635 EBUG_ON(shift + BKEY_MANTISSA_BITS > b->format.key_u64s * 64); in make_bfloat()
1081 unsigned key_bits_start = b->format.key_u64s * 64 - b->nr_key_bits; in bkey_mantissa_bits_dropped()
Dbcachefs_format.h126 __u8 key_u64s; member
324 .key_u64s = BKEY_U64s, \
Dbtree_update_interior.c192 (((int) new_f->key_u64s - old_f->key_u64s) * in btree_node_u64s_with_format()
194 (((int) new_f->key_u64s - BKEY_U64s) * in btree_node_u64s_with_format()
1509 unsigned u64s = nr_keys[i].nr_keys * n[i]->data->format.key_u64s + in __btree_split_node()