Lines Matching refs:cache_set
254 struct cache_set *c;
416 struct cache_set *set;
513 struct cache_set { struct
794 static inline size_t sector_to_bucket(struct cache_set *c, sector_t s) in sector_to_bucket()
799 static inline sector_t bucket_to_sector(struct cache_set *c, size_t b) in bucket_to_sector()
804 static inline sector_t bucket_remainder(struct cache_set *c, sector_t s) in bucket_remainder()
809 static inline size_t PTR_BUCKET_NR(struct cache_set *c, in PTR_BUCKET_NR()
816 static inline struct bucket *PTR_BUCKET(struct cache_set *c, in PTR_BUCKET()
830 static inline uint8_t ptr_stale(struct cache_set *c, const struct bkey *k, in ptr_stale()
836 static inline bool ptr_available(struct cache_set *c, const struct bkey *k, in ptr_available()
926 static inline void wake_up_allocators(struct cache_set *c) in wake_up_allocators()
933 static inline void closure_bio_submit(struct cache_set *c, in closure_bio_submit()
965 void bch_bbio_count_io_errors(struct cache_set *c, struct bio *bio,
967 void bch_bbio_endio(struct cache_set *c, struct bio *bio,
969 void bch_bbio_free(struct bio *bio, struct cache_set *c);
970 struct bio *bch_bbio_alloc(struct cache_set *c);
972 void __bch_submit_bbio(struct bio *bio, struct cache_set *c);
973 void bch_submit_bbio(struct bio *bio, struct cache_set *c,
977 void bch_rescale_priorities(struct cache_set *c, int sectors);
983 void bch_bucket_free(struct cache_set *c, struct bkey *k);
986 int __bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve,
988 int bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve,
990 bool bch_alloc_sectors(struct cache_set *c, struct bkey *k,
996 bool bch_cache_set_error(struct cache_set *c, const char *fmt, ...);
1018 int bch_uuid_write(struct cache_set *c);
1019 void bcache_write_super(struct cache_set *c);
1021 int bch_flash_dev_create(struct cache_set *c, uint64_t size);
1023 int bch_cached_dev_attach(struct cached_dev *dc, struct cache_set *c,
1029 void bch_cache_set_unregister(struct cache_set *c);
1030 void bch_cache_set_stop(struct cache_set *c);
1032 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb);
1033 void bch_btree_cache_free(struct cache_set *c);
1034 int bch_btree_cache_alloc(struct cache_set *c);
1035 void bch_moving_init_cache_set(struct cache_set *c);
1036 int bch_open_buckets_alloc(struct cache_set *c);
1037 void bch_open_buckets_free(struct cache_set *c);