Lines Matching refs:c
16 void bch_bbio_free(struct bio *bio, struct cache_set *c) in bch_bbio_free() argument
19 mempool_free(b, c->bio_meta); in bch_bbio_free()
22 struct bio *bch_bbio_alloc(struct cache_set *c) in bch_bbio_alloc() argument
24 struct bbio *b = mempool_alloc(c->bio_meta, GFP_NOIO); in bch_bbio_alloc()
29 bio->bi_max_vecs = bucket_pages(c); in bch_bbio_alloc()
35 void __bch_submit_bbio(struct bio *bio, struct cache_set *c) in __bch_submit_bbio() argument
40 bio->bi_bdev = PTR_CACHE(c, &b->key, 0)->bdev; in __bch_submit_bbio()
46 void bch_submit_bbio(struct bio *bio, struct cache_set *c, in bch_submit_bbio() argument
51 __bch_submit_bbio(bio, c); in bch_submit_bbio()
108 void bch_bbio_count_io_errors(struct cache_set *c, struct bio *bio, in bch_bbio_count_io_errors() argument
112 struct cache *ca = PTR_CACHE(c, &b->key, 0); in bch_bbio_count_io_errors()
115 ? c->congested_write_threshold_us in bch_bbio_count_io_errors()
116 : c->congested_read_threshold_us; in bch_bbio_count_io_errors()
122 int congested = atomic_read(&c->congested); in bch_bbio_count_io_errors()
126 c->congested_last_us = t; in bch_bbio_count_io_errors()
129 atomic_sub(ms, &c->congested); in bch_bbio_count_io_errors()
131 atomic_inc(&c->congested); in bch_bbio_count_io_errors()
137 void bch_bbio_endio(struct cache_set *c, struct bio *bio, in bch_bbio_endio() argument
142 bch_bbio_count_io_errors(c, bio, error, m); in bch_bbio_endio()