Lines Matching defs:cache_bio
692 * - cache_bio->bi_end_io from cached_dev_cache_miss()
825 * We had a cache miss; cache_bio now contains data ready to be inserted
828 * First, we copy the data we just read from cache_bio's bounce buffers
883 struct bio *miss, *cache_bio;
894 /* Limitation for valid replace key size and cache_bio bvecs number */
915 cache_bio = bio_alloc_bioset(miss->bi_bdev,
918 if (!cache_bio)
921 cache_bio->bi_iter.bi_sector = miss->bi_iter.bi_sector;
922 cache_bio->bi_iter.bi_size = s->insert_bio_sectors << 9;
924 cache_bio->bi_end_io = backing_request_endio;
925 cache_bio->bi_private = &s->cl;
927 bch_bio_map(cache_bio, NULL);
928 if (bch_bio_alloc_pages(cache_bio, __GFP_NOWARN|GFP_NOIO))
932 s->iop.bio = cache_bio;
933 bio_get(cache_bio);
935 closure_bio_submit(s->iop.c, cache_bio, &s->cl);
939 bio_put(cache_bio);