Home
last modified time | relevance | path

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

/drivers/md/bcache/
Dbcache.h428 struct cache_set *c;
558 struct cache_set *set;
675 struct cache_set { struct
876 static inline bool key_merging_disabled(struct cache_set *c) in key_merging_disabled() argument
999 static inline size_t sector_to_bucket(struct cache_set *c, sector_t s) in sector_to_bucket()
1004 static inline sector_t bucket_to_sector(struct cache_set *c, size_t b) in bucket_to_sector()
1009 static inline sector_t bucket_remainder(struct cache_set *c, sector_t s) in bucket_remainder()
1014 static inline struct cache *PTR_CACHE(struct cache_set *c, in PTR_CACHE()
1021 static inline size_t PTR_BUCKET_NR(struct cache_set *c, in PTR_BUCKET_NR()
1028 static inline struct bucket *PTR_BUCKET(struct cache_set *c, in PTR_BUCKET()
[all …]
Djournal.h133 struct cache_set *c;
200 struct cache_set;
205 void bch_journal_mark(struct cache_set *, struct list_head *);
206 void bch_journal_meta(struct cache_set *, struct closure *);
207 int bch_journal_read(struct cache_set *, struct list_head *,
209 int bch_journal_replay(struct cache_set *, struct list_head *,
212 void bch_journal_free(struct cache_set *);
213 int bch_journal_alloc(struct cache_set *);
Dbtree.h128 struct cache_set *c;
208 static inline void set_gc_sectors(struct cache_set *c) in set_gc_sectors()
245 struct cache_set *c;
377 void bch_cannibalize_unlock(struct cache_set *, struct closure *);
379 struct btree *bch_btree_node_alloc(struct cache_set *, int, struct closure *);
380 struct btree *bch_btree_node_get(struct cache_set *, struct bkey *,
386 int bch_btree_insert(struct btree_op *, struct cache_set *);
390 void bch_queue_gc(struct cache_set *);
391 size_t bch_btree_gc_finish(struct cache_set *);
393 int bch_btree_check(struct cache_set *, struct btree_op *);
[all …]
Dbset.h266 int bch_keylist_realloc(struct keylist *, int, struct cache_set *);
285 const char *bch_ptr_status(struct cache_set *, const struct bkey *);
286 bool __bch_ptr_invalid(struct cache_set *, int level, const struct bkey *);
295 static inline uint8_t ptr_stale(struct cache_set *c, const struct bkey *k, in ptr_stale()
301 static inline bool ptr_available(struct cache_set *c, const struct bkey *k, in ptr_available()
377 int bch_bset_print_stats(struct cache_set *, char *);
Djournal.c130 int bch_journal_read(struct cache_set *c, struct list_head *list, in bch_journal_read()
232 void bch_journal_mark(struct cache_set *c, struct list_head *list) in bch_journal_mark()
282 int bch_journal_replay(struct cache_set *s, struct list_head *list, in bch_journal_replay()
341 static void btree_flush_write(struct cache_set *c) in btree_flush_write()
456 static void journal_reclaim(struct cache_set *c) in journal_reclaim()
551 struct cache_set *c = container_of(j, struct cache_set, journal); in journal_write_done()
568 struct cache_set *c = container_of(cl, struct cache_set, journal.io.cl); in journal_write_unlocked()
649 struct cache_set *c = container_of(cl, struct cache_set, journal.io.cl); in journal_write()
655 static void __journal_try_write(struct cache_set *c, bool noflush) in __journal_try_write()
671 void bch_journal_meta(struct cache_set *c, struct closure *cl) in bch_journal_meta()
[all …]
Dsuper.c296 void bcache_write_super(struct cache_set *c) in bcache_write_super()
332 struct cache_set *c = container_of(cl, struct cache_set, uuid_write.cl); in uuid_endio()
339 static void uuid_io(struct cache_set *c, unsigned long rw, in uuid_io()
377 static char *uuid_read(struct cache_set *c, struct jset *j, struct closure *cl) in uuid_read()
418 static int __uuid_write(struct cache_set *c) in __uuid_write()
438 int bch_uuid_write(struct cache_set *c) in bch_uuid_write()
448 static struct uuid_entry *uuid_find(struct cache_set *c, const char *uuid) in uuid_find()
460 static struct uuid_entry *uuid_find_empty(struct cache_set *c) in uuid_find_empty()
675 static void bcache_device_link(struct bcache_device *d, struct cache_set *c, in bcache_device_link()
714 static void bcache_device_attach(struct bcache_device *d, struct cache_set *c, in bcache_device_attach()
[all …]
Dmovinggc.c20 struct cache_set *c = container_of(buf, struct cache_set, in moving_pred()
133 struct cache_set *c = container_of(cl, struct cache_set, moving_gc); in read_moving()
198 struct cache_set *c = container_of(cl, struct cache_set, gc.cl); in bch_moving_gc()
251 void bch_moving_init_cache_set(struct cache_set *c) in bch_moving_init_cache_set()
Drequest.h33 int bch_get_congested(struct cache_set *);
38 void bch_open_buckets_free(struct cache_set *);
39 int bch_open_buckets_alloc(struct cache_set *);
Dsysfs.c172 struct cache_set *c; in STORE()
364 unsigned root_usage(struct cache_set *c) in SHOW()
388 size_t cache_size(struct cache_set *c) in SHOW()
401 unsigned cache_max_chain(struct cache_set *c) in SHOW()
424 unsigned btree_used(struct cache_set *c) in SHOW()
430 unsigned average_key_size(struct cache_set *c) in SHOW()
437 struct cache_set *c = container_of(kobj, struct cache_set, kobj); in SHOW()
496 struct cache_set *c = container_of(kobj, struct cache_set, kobj); in STORE()
566 struct cache_set *c = container_of(kobj, struct cache_set, internal); in SHOW()
572 struct cache_set *c = container_of(kobj, struct cache_set, internal); in STORE()
Dio.c268 void bch_bbio_free(struct bio *bio, struct cache_set *c) in bch_bbio_free()
274 struct bio *bch_bbio_alloc(struct cache_set *c) in bch_bbio_alloc()
287 void __bch_submit_bbio(struct bio *bio, struct cache_set *c) in __bch_submit_bbio()
298 void bch_submit_bbio(struct bio *bio, struct cache_set *c, in bch_submit_bbio()
360 void bch_bbio_count_io_errors(struct cache_set *c, struct bio *bio, in bch_bbio_count_io_errors()
389 void bch_bbio_endio(struct cache_set *c, struct bio *bio, in bch_bbio_endio()
Ddebug.h49 void bch_debug_init_cache_set(struct cache_set *);
51 static inline void bch_debug_init_cache_set(struct cache_set *c) {} in bch_debug_init_cache_set()
Dbtree.c120 static void bkey_put(struct cache_set *c, struct bkey *k, int level) in bkey_put()
552 static struct btree *mca_bucket_alloc(struct cache_set *c, in mca_bucket_alloc()
603 struct cache_set *c = container_of(shrink, struct cache_set, shrink); in bch_mca_shrink()
668 void bch_btree_cache_free(struct cache_set *c) in bch_btree_cache_free()
708 int bch_btree_cache_alloc(struct cache_set *c) in bch_btree_cache_alloc()
744 static struct hlist_head *mca_hash(struct cache_set *c, struct bkey *k) in mca_hash()
749 static struct btree *mca_find(struct cache_set *c, struct bkey *k) in mca_find()
763 static struct btree *mca_cannibalize(struct cache_set *c, struct bkey *k, in mca_cannibalize()
816 void bch_cannibalize_unlock(struct cache_set *c, struct closure *cl) in bch_cannibalize_unlock()
825 static struct btree *mca_alloc(struct cache_set *c, struct bkey *k, in mca_alloc()
[all …]
Ddebug.c21 const char *bch_ptr_status(struct cache_set *c, const struct bkey *k) in bch_ptr_status()
326 struct cache_set *c;
371 struct cache_set *c = inode->i_private; in bch_dump_open()
399 void bch_debug_init_cache_set(struct cache_set *c) in bch_debug_init_cache_set()
430 struct cache_set *c;
Dalloc.c88 void bch_rescale_priorities(struct cache_set *c, int sectors) in bch_rescale_priorities()
497 void bch_bucket_free(struct cache_set *c, struct bkey *k) in bch_bucket_free()
510 int __bch_bucket_alloc_set(struct cache_set *c, unsigned watermark, in __bch_bucket_alloc_set()
543 int bch_bucket_alloc_set(struct cache_set *c, unsigned watermark, in bch_bucket_alloc_set()
Drequest.c251 void bch_open_buckets_free(struct cache_set *c) in bch_open_buckets_free()
263 int bch_open_buckets_alloc(struct cache_set *c) in bch_open_buckets_alloc()
299 static struct open_bucket *pick_data_bucket(struct cache_set *c, in pick_data_bucket()
340 struct cache_set *c = s->op.c; in bch_alloc_sectors()
1091 int bch_get_congested(struct cache_set *c) in bch_get_congested()
1127 struct cache_set *c = s->op.c; in check_should_skip()
Dbset.c28 int bch_keylist_realloc(struct keylist *l, int nptrs, struct cache_set *c) in bch_keylist_realloc()
78 bool __bch_ptr_invalid(struct cache_set *c, int level, const struct bkey *k) in __bch_ptr_invalid()
1167 int bch_bset_print_stats(struct cache_set *c, char *buf) in bch_bset_print_stats()
Dwriteback.c27 struct cache_set *c = dc->disk.c; in __update_writeback_rate()