Lines Matching defs:bio
561 * it is not vmalloced, try using the bio interface.
564 * rejects the bio because it is too large, use dm-io layer to do the I/O.
570 * dm-io completion routine. It just calls b->bio.bi_end_io, pretending
571 * that the request was handled directly with bio interface.
610 static void bio_complete(struct bio *bio)
612 struct dm_buffer *b = bio->bi_private;
613 blk_status_t status = bio->bi_status;
614 bio_put(bio);
621 struct bio *bio;
629 bio = bio_kmalloc(GFP_NOWAIT | __GFP_NORETRY | __GFP_NOWARN, vec_size);
630 if (!bio) {
636 bio->bi_iter.bi_sector = sector;
637 bio_set_dev(bio, b->c->bdev);
638 bio_set_op_attrs(bio, rw, 0);
639 bio->bi_end_io = bio_complete;
640 bio->bi_private = b;
647 if (!bio_add_page(bio, virt_to_page(ptr), this_step,
649 bio_put(bio);
657 submit_bio(bio);