Lines Matching refs:key_u64s
119 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()
244 kmalloc(key_u64s * sizeof(u64), _gfp)); in btree_key_cache_create()
247 bch2_btree_id_str(ck->key.btree_id), key_u64s); in btree_key_cache_create()
256 ck->u64s = key_u64s; in btree_key_cache_create()