Lines Matching defs:bio
48 void rnbd_dev_bi_end_io(struct bio *bio)
50 struct rnbd_dev_blk_io *io = bio->bi_private;
52 rnbd_endio(io->priv, blk_status_to_errno(bio->bi_status));
53 bio_put(bio);
57 * rnbd_bio_map_kern - map kernel address into bio
61 * @gfp_mask: allocation flags for bio allocation
63 * Map the kernel address into a bio suitable for io to a block
66 struct bio *rnbd_bio_map_kern(void *data, struct bio_set *bs,
74 struct bio *bio;
76 bio = bio_alloc_bioset(gfp_mask, nr_pages, bs);
77 if (!bio)
90 if (bio_add_page(bio, virt_to_page(data), bytes,
93 bio_put(bio);
102 return bio;