Lines Matching refs:io_desc
51 struct io_desc {
68 /* io_desc has to be the last element of the struct */
69 struct io_desc io_desc[];
1227 static void cowify_req(struct io_thread_req *req, struct io_desc *segment,
1260 io_req->io_desc[0].buffer = NULL;
1261 io_req->io_desc[0].length = blk_rq_bytes(req);
1266 io_req->io_desc[i].buffer = bvec_virt(&bvec);
1267 io_req->io_desc[i].length = bvec.bv_len;
1274 cowify_req(io_req, &io_req->io_desc[i], byte_offset,
1277 byte_offset += io_req->io_desc[i].length;
1290 (desc_cnt * sizeof(struct io_desc)),
1308 io_req->io_desc[i].sector_mask = 0;
1309 io_req->io_desc[i].cow_offset = -1;
1451 static int update_bitmap(struct io_thread_req *req, struct io_desc *segment)
1466 static void do_io(struct io_thread_req *req, struct io_desc *desc)
1579 do_io(req, &(req->io_desc[i]));