Lines Matching refs:cache_set

251 	struct cache_set	*c;
381 struct cache_set *set;
471 struct cache_set { struct
700 static inline size_t sector_to_bucket(struct cache_set *c, sector_t s) in sector_to_bucket()
705 static inline sector_t bucket_to_sector(struct cache_set *c, size_t b) in bucket_to_sector()
710 static inline sector_t bucket_remainder(struct cache_set *c, sector_t s) in bucket_remainder()
715 static inline struct cache *PTR_CACHE(struct cache_set *c, in PTR_CACHE()
722 static inline size_t PTR_BUCKET_NR(struct cache_set *c, in PTR_BUCKET_NR()
729 static inline struct bucket *PTR_BUCKET(struct cache_set *c, in PTR_BUCKET()
742 static inline uint8_t ptr_stale(struct cache_set *c, const struct bkey *k, in ptr_stale()
748 static inline bool ptr_available(struct cache_set *c, const struct bkey *k, in ptr_available()
841 static inline void wake_up_allocators(struct cache_set *c) in wake_up_allocators()
853 void bch_bbio_count_io_errors(struct cache_set *, struct bio *,
855 void bch_bbio_endio(struct cache_set *, struct bio *, int, const char *);
856 void bch_bbio_free(struct bio *, struct cache_set *);
857 struct bio *bch_bbio_alloc(struct cache_set *);
859 void __bch_submit_bbio(struct bio *, struct cache_set *);
860 void bch_submit_bbio(struct bio *, struct cache_set *, struct bkey *, unsigned);
863 void bch_rescale_priorities(struct cache_set *, int);
869 void bch_bucket_free(struct cache_set *, struct bkey *);
872 int __bch_bucket_alloc_set(struct cache_set *, unsigned,
874 int bch_bucket_alloc_set(struct cache_set *, unsigned,
876 bool bch_alloc_sectors(struct cache_set *, struct bkey *, unsigned,
880 bool bch_cache_set_error(struct cache_set *, const char *, ...);
901 int bch_uuid_write(struct cache_set *);
902 void bcache_write_super(struct cache_set *);
904 int bch_flash_dev_create(struct cache_set *c, uint64_t size);
906 int bch_cached_dev_attach(struct cached_dev *, struct cache_set *);
911 void bch_cache_set_unregister(struct cache_set *);
912 void bch_cache_set_stop(struct cache_set *);
914 struct cache_set *bch_cache_set_alloc(struct cache_sb *);
915 void bch_btree_cache_free(struct cache_set *);
916 int bch_btree_cache_alloc(struct cache_set *);
917 void bch_moving_init_cache_set(struct cache_set *);
918 int bch_open_buckets_alloc(struct cache_set *);
919 void bch_open_buckets_free(struct cache_set *);