Lines Matching defs:cache_bio
693 * - cache_bio->bi_end_io from cached_dev_cache_miss()
824 * We had a cache miss; cache_bio now contains data ready to be inserted
827 * First, we copy the data we just read from cache_bio's bounce buffers
883 struct bio *miss, *cache_bio;
916 cache_bio = bio_alloc_bioset(GFP_NOWAIT,
919 if (!cache_bio)
922 cache_bio->bi_iter.bi_sector = miss->bi_iter.bi_sector;
923 bio_copy_dev(cache_bio, miss);
924 cache_bio->bi_iter.bi_size = s->insert_bio_sectors << 9;
926 cache_bio->bi_end_io = backing_request_endio;
927 cache_bio->bi_private = &s->cl;
929 bch_bio_map(cache_bio, NULL);
930 if (bch_bio_alloc_pages(cache_bio, __GFP_NOWARN|GFP_NOIO))
937 s->iop.bio = cache_bio;
938 bio_get(cache_bio);
940 closure_bio_submit(s->iop.c, cache_bio, &s->cl);
944 bio_put(cache_bio);