Lines Matching defs:io_desc
50 struct io_desc {
67 /* io_desc has to be the last element of the struct */
68 struct io_desc io_desc[];
1172 static void cowify_req(struct io_thread_req *req, struct io_desc *segment,
1205 io_req->io_desc[0].buffer = NULL;
1206 io_req->io_desc[0].length = blk_rq_bytes(req);
1211 io_req->io_desc[i].buffer = bvec_virt(&bvec);
1212 io_req->io_desc[i].length = bvec.bv_len;
1219 cowify_req(io_req, &io_req->io_desc[i], byte_offset,
1222 byte_offset += io_req->io_desc[i].length;
1235 (desc_cnt * sizeof(struct io_desc)),
1253 io_req->io_desc[i].sector_mask = 0;
1254 io_req->io_desc[i].cow_offset = -1;
1396 static int update_bitmap(struct io_thread_req *req, struct io_desc *segment)
1411 static void do_io(struct io_thread_req *req, struct io_desc *desc)
1524 do_io(req, &(req->io_desc[i]));