Lines Matching refs:btree_key_cache

60 	return rhashtable_lookup_fast(&c->btree_key_cache.table, &key,  in bch2_btree_key_cache_find()
82 static bool bkey_cached_evict(struct btree_key_cache *c, in bkey_cached_evict()
100 this_cpu_dec(*c->btree_key_cache.nr_pending); in __bkey_cached_free()
104 static void bkey_cached_free(struct btree_key_cache *bc, in bkey_cached_free()
139 struct btree_key_cache *bc = &c->btree_key_cache; in bkey_cached_alloc()
175 bkey_cached_reuse(struct btree_key_cache *c) in bkey_cached_reuse()
204 struct btree_key_cache *bc = &c->btree_key_cache; in btree_key_cache_create()
453 atomic_long_dec(&c->btree_key_cache.nr_dirty); in btree_key_cache_flush_pos()
467 atomic_long_dec(&c->btree_key_cache.nr_dirty); in btree_key_cache_flush_pos()
471 if (bkey_cached_evict(&c->btree_key_cache, ck)) { in btree_key_cache_flush_pos()
472 bkey_cached_free(&c->btree_key_cache, ck); in btree_key_cache_flush_pos()
538 atomic_long_inc(&c->btree_key_cache.nr_dirty); in bch2_btree_insert_key_cached()
572 struct btree_key_cache *bc = &c->btree_key_cache; in bch2_btree_key_cache_drop()
581 atomic_long_dec(&c->btree_key_cache.nr_dirty); in bch2_btree_key_cache_drop()
597 struct btree_key_cache *bc = &c->btree_key_cache; in bch2_btree_key_cache_scan()
676 struct btree_key_cache *bc = &c->btree_key_cache; in bch2_btree_key_cache_count()
691 void bch2_fs_btree_key_cache_exit(struct btree_key_cache *bc) in bch2_fs_btree_key_cache_exit()
693 struct bch_fs *c = container_of(bc, struct bch_fs, btree_key_cache); in bch2_fs_btree_key_cache_exit()
747 void bch2_fs_btree_key_cache_init_early(struct btree_key_cache *c) in bch2_fs_btree_key_cache_init_early()
751 int bch2_fs_btree_key_cache_init(struct btree_key_cache *bc) in bch2_fs_btree_key_cache_init()
753 struct bch_fs *c = container_of(bc, struct bch_fs, btree_key_cache); in bch2_fs_btree_key_cache_init()
782 void bch2_btree_key_cache_to_text(struct printbuf *out, struct btree_key_cache *bc) in bch2_btree_key_cache_to_text()