Lines Matching defs: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.
1323 static void bio_complete(struct bio *bio)
1325 struct dm_buffer *b = bio->bi_private;
1326 blk_status_t status = bio->bi_status;
1328 bio_uninit(bio);
1329 kfree(bio);
1336 struct bio *bio;
1340 bio = bio_kmalloc(1, GFP_NOWAIT | __GFP_NORETRY | __GFP_NOWARN);
1341 if (!bio) {
1345 bio_init(bio, b->c->bdev, bio->bi_inline_vecs, 1, op);
1346 bio->bi_iter.bi_sector = sector;
1347 bio->bi_end_io = bio_complete;
1348 bio->bi_private = b;
1353 __bio_add_page(bio, virt_to_page(ptr), len, offset_in_page(ptr));
1355 submit_bio(bio);