Lines Matching refs:bio
1274 * it is not vmalloced, try using the bio interface.
1277 * rejects the bio because it is too large, use dm-io layer to do the I/O.
1284 * dm-io completion routine. It just calls b->bio.bi_end_io, pretending
1285 * that the request was handled directly with bio interface.
1324 static void bio_complete(struct bio *bio)
1326 struct dm_buffer *b = bio->bi_private;
1327 blk_status_t status = bio->bi_status;
1329 bio_uninit(bio);
1330 kfree(bio);
1338 struct bio *bio;
1342 bio = bio_kmalloc(1, GFP_NOWAIT | __GFP_NORETRY | __GFP_NOWARN);
1343 if (!bio) {
1347 bio_init(bio, b->c->bdev, bio->bi_inline_vecs, 1, op);
1348 bio->bi_iter.bi_sector = sector;
1349 bio->bi_end_io = bio_complete;
1350 bio->bi_private = b;
1351 bio->bi_ioprio = ioprio;
1356 __bio_add_page(bio, virt_to_page(ptr), len, offset_in_page(ptr));
1358 submit_bio(bio);