Home
last modified time | relevance | path

Searched refs:btree_key_cache (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dbtree_key_cache.h7 size_t nr_dirty = atomic_long_read(&c->btree_key_cache.nr_dirty); in bch2_nr_btree_keys_need_flush()
8 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); in bch2_nr_btree_keys_need_flush()
16 size_t nr_dirty = atomic_long_read(&c->btree_key_cache.nr_dirty); in __bch2_btree_key_cache_must_wait()
17 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); in __bch2_btree_key_cache_must_wait()
30 size_t nr_dirty = atomic_long_read(&c->btree_key_cache.nr_dirty); in bch2_btree_key_cache_wait_done()
31 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); in bch2_btree_key_cache_wait_done()
51 void bch2_fs_btree_key_cache_exit(struct btree_key_cache *);
52 void bch2_fs_btree_key_cache_init_early(struct btree_key_cache *);
53 int bch2_fs_btree_key_cache_init(struct btree_key_cache *);
55 void bch2_btree_key_cache_to_text(struct printbuf *, struct btree_key_cache *);
Dbtree_key_cache.c60 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()
[all …]
Dbtree_key_cache_types.h7 struct btree_key_cache { struct
Dsysfs.c174 read_attribute(btree_key_cache);
362 bch2_btree_key_cache_to_text(out, &c->btree_key_cache); in SHOW()
464 c->btree_key_cache.shrink->scan_objects(c->btree_key_cache.shrink, &sc); in STORE()
DMakefile18 btree_key_cache.o \
Djournal_reclaim.c695 atomic_long_read(&c->btree_key_cache.nr_dirty), in __bch2_journal_reclaim()
696 atomic_long_read(&c->btree_key_cache.nr_keys)); in __bch2_journal_reclaim()
Dbcachefs.h858 struct btree_key_cache btree_key_cache; member
Dsuper.c376 BUG_ON(atomic_long_read(&c->btree_key_cache.nr_dirty)); in bch2_fs_read_only()
556 bch2_fs_btree_key_cache_exit(&c->btree_key_cache); in __bch2_fs_free()
781 bch2_fs_btree_key_cache_init_early(&c->btree_key_cache); in bch2_fs_alloc()
918 bch2_fs_btree_key_cache_init(&c->btree_key_cache) ?: in bch2_fs_alloc()
Dtrace.h1013 __entry->key_cache_nr_keys = atomic_long_read(&trans->c->btree_key_cache.nr_keys);
1014 __entry->key_cache_nr_dirty = atomic_long_read(&trans->c->btree_key_cache.nr_dirty);