Home
last modified time | relevance | path

Searched refs:cache_set (Results 1 – 21 of 21) sorted by relevance

/Linux-v5.4/drivers/md/bcache/
Dbtree.h128 struct cache_set *c;
194 static inline void set_gc_sectors(struct cache_set *c) in set_gc_sectors()
199 void bkey_put(struct cache_set *c, struct bkey *k);
248 struct btree *__bch_btree_node_alloc(struct cache_set *c, struct btree_op *op,
251 struct btree *bch_btree_node_get(struct cache_set *c, struct btree_op *op,
257 int bch_btree_insert(struct cache_set *c, struct keylist *keys,
260 int bch_gc_thread_start(struct cache_set *c);
261 void bch_initial_gc_finish(struct cache_set *c);
262 void bch_moving_gc(struct cache_set *c);
263 int bch_btree_check(struct cache_set *c);
[all …]
Dbcache.h254 struct cache_set *c;
404 struct cache_set *set;
502 struct cache_set { struct
764 static inline size_t sector_to_bucket(struct cache_set *c, sector_t s) in sector_to_bucket()
769 static inline sector_t bucket_to_sector(struct cache_set *c, size_t b) in bucket_to_sector()
774 static inline sector_t bucket_remainder(struct cache_set *c, sector_t s) in bucket_remainder()
779 static inline struct cache *PTR_CACHE(struct cache_set *c, in PTR_CACHE()
786 static inline size_t PTR_BUCKET_NR(struct cache_set *c, in PTR_BUCKET_NR()
793 static inline struct bucket *PTR_BUCKET(struct cache_set *c, in PTR_BUCKET()
807 static inline uint8_t ptr_stale(struct cache_set *c, const struct bkey *k, in ptr_stale()
[all …]
Djournal.h97 struct cache_set *c;
170 struct cache_set;
174 atomic_t *bch_journal(struct cache_set *c,
178 void bch_journal_mark(struct cache_set *c, struct list_head *list);
179 void bch_journal_meta(struct cache_set *c, struct closure *cl);
180 int bch_journal_read(struct cache_set *c, struct list_head *list);
181 int bch_journal_replay(struct cache_set *c, struct list_head *list);
183 void bch_journal_free(struct cache_set *c);
184 int bch_journal_alloc(struct cache_set *c);
Dstats.h42 struct cache_set;
56 void bch_mark_cache_accounting(struct cache_set *c, struct bcache_device *d,
58 void bch_mark_cache_readahead(struct cache_set *c, struct bcache_device *d);
59 void bch_mark_cache_miss_collision(struct cache_set *c,
61 void bch_mark_sectors_bypassed(struct cache_set *c,
Dextents.h9 struct cache_set;
12 bool __bch_btree_ptr_invalid(struct cache_set *c, const struct bkey *k);
13 bool __bch_extent_invalid(struct cache_set *c, const struct bkey *k);
Dio.c17 void bch_bbio_free(struct bio *bio, struct cache_set *c) in bch_bbio_free()
24 struct bio *bch_bbio_alloc(struct cache_set *c) in bch_bbio_alloc()
34 void __bch_submit_bbio(struct bio *bio, struct cache_set *c) in __bch_submit_bbio()
45 void bch_submit_bbio(struct bio *bio, struct cache_set *c, in bch_submit_bbio()
136 void bch_bbio_count_io_errors(struct cache_set *c, struct bio *bio, in bch_bbio_count_io_errors()
166 void bch_bbio_endio(struct cache_set *c, struct bio *bio, in bch_bbio_endio()
Ddebug.h7 struct cache_set;
30 void bch_debug_init_cache_set(struct cache_set *c);
32 static inline void bch_debug_init_cache_set(struct cache_set *c) {} in bch_debug_init_cache_set()
Djournal.c171 int bch_journal_read(struct cache_set *c, struct list_head *list) in bch_journal_read()
300 void bch_journal_mark(struct cache_set *c, struct list_head *list) in bch_journal_mark()
346 static bool is_discard_enabled(struct cache_set *s) in is_discard_enabled()
358 int bch_journal_replay(struct cache_set *s, struct list_head *list) in bch_journal_replay()
420 static void btree_flush_write(struct cache_set *c) in btree_flush_write()
568 static void journal_reclaim(struct cache_set *c) in journal_reclaim()
678 struct cache_set *c = container_of(cl, struct cache_set, journal.io); in journal_write_unlock()
687 struct cache_set *c = container_of(cl, struct cache_set, journal.io); in journal_write_unlocked()
768 struct cache_set *c = container_of(cl, struct cache_set, journal.io); in journal_write()
774 static void journal_try_write(struct cache_set *c) in journal_try_write()
[all …]
Dsuper.c283 struct cache_set *c = container_of(cl, struct cache_set, sb_write); in bcache_write_super_unlock()
288 void bcache_write_super(struct cache_set *c) in bcache_write_super()
325 struct cache_set *c = container_of(cl, struct cache_set, uuid_write); in uuid_endio()
334 struct cache_set *c = container_of(cl, struct cache_set, uuid_write); in uuid_io_unlock()
339 static void uuid_io(struct cache_set *c, int op, unsigned long op_flags, in uuid_io()
380 static char *uuid_read(struct cache_set *c, struct jset *j, struct closure *cl) in uuid_read()
421 static int __uuid_write(struct cache_set *c) in __uuid_write()
446 int bch_uuid_write(struct cache_set *c) in bch_uuid_write()
456 static struct uuid_entry *uuid_find(struct cache_set *c, const char *uuid) in uuid_find()
468 static struct uuid_entry *uuid_find_empty(struct cache_set *c) in uuid_find_empty()
[all …]
Drequest.h7 struct cache_set *c;
36 unsigned int bch_get_congested(const struct cache_set *c);
Dsysfs.c273 struct cache_set *c; in STORE()
584 static int bch_bset_print_stats(struct cache_set *c, char *buf) in bch_bset_print_stats()
610 static unsigned int bch_root_usage(struct cache_set *c) in bch_root_usage()
634 static size_t bch_cache_size(struct cache_set *c) in bch_cache_size()
647 static unsigned int bch_cache_max_chain(struct cache_set *c) in bch_cache_max_chain()
670 static unsigned int bch_btree_used(struct cache_set *c) in bch_btree_used()
676 static unsigned int bch_average_key_size(struct cache_set *c) in bch_average_key_size()
685 struct cache_set *c = container_of(kobj, struct cache_set, kobj); in SHOW()
763 struct cache_set *c = container_of(kobj, struct cache_set, kobj); in STORE()
880 struct cache_set *c = container_of(kobj, struct cache_set, internal); in SHOW()
[all …]
Dmovinggc.c24 struct cache_set *c = container_of(buf, struct cache_set, in moving_pred()
126 static void read_moving(struct cache_set *c) in read_moving()
197 void bch_moving_gc(struct cache_set *c) in bch_moving_gc()
250 void bch_moving_init_cache_set(struct cache_set *c) in bch_moving_init_cache_set()
Dbtree.c184 void bkey_put(struct cache_set *c, struct bkey *k) in bkey_put()
613 static struct btree *mca_bucket_alloc(struct cache_set *c, in mca_bucket_alloc()
700 struct cache_set *c = container_of(shrink, struct cache_set, shrink); in bch_mca_scan()
767 struct cache_set *c = container_of(shrink, struct cache_set, shrink); in bch_mca_count()
778 void bch_btree_cache_free(struct cache_set *c) in bch_btree_cache_free()
826 int bch_btree_cache_alloc(struct cache_set *c) in bch_btree_cache_alloc()
866 static struct hlist_head *mca_hash(struct cache_set *c, struct bkey *k) in mca_hash()
871 static struct btree *mca_find(struct cache_set *c, struct bkey *k) in mca_find()
885 static int mca_cannibalize_lock(struct cache_set *c, struct btree_op *op) in mca_cannibalize_lock()
900 static struct btree *mca_cannibalize(struct cache_set *c, struct btree_op *op, in mca_cannibalize()
[all …]
Dstats.c199 void bch_mark_cache_accounting(struct cache_set *c, struct bcache_device *d, in bch_mark_cache_accounting()
208 void bch_mark_cache_readahead(struct cache_set *c, struct bcache_device *d) in bch_mark_cache_readahead()
216 void bch_mark_cache_miss_collision(struct cache_set *c, struct bcache_device *d) in bch_mark_cache_miss_collision()
224 void bch_mark_sectors_bypassed(struct cache_set *c, struct cached_dev *dc, in bch_mark_sectors_bypassed()
Dalloc.c86 void bch_rescale_priorities(struct cache_set *c, int sectors) in bch_rescale_priorities()
478 void bch_bucket_free(struct cache_set *c, struct bkey *k) in bch_bucket_free()
487 int __bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve, in __bch_bucket_alloc_set()
524 int bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve, in bch_bucket_alloc_set()
569 static struct open_bucket *pick_data_bucket(struct cache_set *c, in pick_data_bucket()
610 bool bch_alloc_sectors(struct cache_set *c, in bch_alloc_sectors()
701 void bch_open_buckets_free(struct cache_set *c) in bch_open_buckets_free()
713 int bch_open_buckets_alloc(struct cache_set *c) in bch_open_buckets_alloc()
Dextents.c47 static bool __ptr_invalid(struct cache_set *c, const struct bkey *k) in __ptr_invalid()
68 static const char *bch_ptr_status(struct cache_set *c, const struct bkey *k) in bch_ptr_status()
149 bool __bch_btree_ptr_invalid(struct cache_set *c, const struct bkey *k) in __bch_btree_ptr_invalid()
314 struct cache_set *c, in bch_subtract_dirty()
328 struct cache_set *c = container_of(b, struct btree, keys)->c; in bch_extent_insert_fixup()
480 bool __bch_extent_invalid(struct cache_set *c, const struct bkey *k) in __bch_extent_invalid()
Ddebug.c162 struct cache_set *c;
208 struct cache_set *c = inode->i_private; in bch_dump_open()
236 void bch_debug_init_cache_set(struct cache_set *c) in bch_debug_init_cache_set()
Dwriteback.c20 static void update_gc_after_writeback(struct cache_set *c) in update_gc_after_writeback()
32 struct cache_set *c = dc->disk.c; in __calc_target_rate()
122 static bool set_at_max_writeback_rate(struct cache_set *c, in set_at_max_writeback_rate()
174 struct cache_set *c = dc->disk.c; in update_writeback_rate()
518 void bcache_dev_sectors_dirty_add(struct cache_set *c, unsigned int inode, in bcache_dev_sectors_dirty_add()
657 struct cache_set *c = dc->disk.c; in bch_writeback_thread()
Dwriteback.h110 void bcache_dev_sectors_dirty_add(struct cache_set *c, unsigned int inode,
Drequest.c103 struct cache_set *c) in bch_keylist_realloc()
336 unsigned int bch_get_congested(const struct cache_set *c) in bch_get_congested()
377 struct cache_set *c = dc->disk.c; in check_should_bypass()
1129 static void quit_max_writeback_rate(struct cache_set *c, in quit_max_writeback_rate()
/Linux-v5.4/include/trace/events/
Dbcache.h152 TP_PROTO(struct cache_set *c, u64 inode, struct bio *bio,
194 DECLARE_EVENT_CLASS(cache_set,
195 TP_PROTO(struct cache_set *c),
214 DEFINE_EVENT(cache_set, bcache_journal_full,
215 TP_PROTO(struct cache_set *c),
219 DEFINE_EVENT(cache_set, bcache_journal_entry_full,
220 TP_PROTO(struct cache_set *c),
252 DEFINE_EVENT(cache_set, bcache_btree_cache_cannibalize,
253 TP_PROTO(struct cache_set *c),
286 DEFINE_EVENT(cache_set, bcache_btree_node_alloc_fail,
[all …]