Lines Matching defs:io_desc
51 struct io_desc {
68 /* io_desc has to be the last element of the struct */
69 struct io_desc io_desc[];
1189 static void cowify_req(struct io_thread_req *req, struct io_desc *segment,
1222 io_req->io_desc[0].buffer = NULL;
1223 io_req->io_desc[0].length = blk_rq_bytes(req);
1228 io_req->io_desc[i].buffer = bvec_virt(&bvec);
1229 io_req->io_desc[i].length = bvec.bv_len;
1236 cowify_req(io_req, &io_req->io_desc[i], byte_offset,
1239 byte_offset += io_req->io_desc[i].length;
1252 (desc_cnt * sizeof(struct io_desc)),
1270 io_req->io_desc[i].sector_mask = 0;
1271 io_req->io_desc[i].cow_offset = -1;
1413 static int update_bitmap(struct io_thread_req *req, struct io_desc *segment)
1428 static void do_io(struct io_thread_req *req, struct io_desc *desc)
1541 do_io(req, &(req->io_desc[i]));