summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/blkdev.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/blkdev.c b/linux/blkdev.c
index 270d3c8..97c9ff4 100644
--- a/linux/blkdev.c
+++ b/linux/blkdev.c
@@ -76,9 +76,9 @@ void generic_make_request(struct bio *bio)
switch (bio_op(bio)) {
case REQ_OP_READ:
iocb.aio_lio_opcode = IO_CMD_PREADV;
- iocb.u.v.vec = iov;
- iocb.u.v.nr = i;
- iocb.u.v.offset = bio->bi_iter.bi_sector << 9;
+ iocb.u.c.buf = iov;
+ iocb.u.c.nbytes = i;
+ iocb.u.c.offset = bio->bi_iter.bi_sector << 9;
atomic_inc(&running_requests);
ret = io_submit(aio_ctx, 1, &iocbp);
@@ -87,9 +87,9 @@ void generic_make_request(struct bio *bio)
break;
case REQ_OP_WRITE:
iocb.aio_lio_opcode = IO_CMD_PWRITEV;
- iocb.u.v.vec = iov;
- iocb.u.v.nr = i;
- iocb.u.v.offset = bio->bi_iter.bi_sector << 9;
+ iocb.u.c.buf = iov;
+ iocb.u.c.nbytes = i;
+ iocb.u.c.offset = bio->bi_iter.bi_sector << 9;
atomic_inc(&running_requests);
ret = io_submit(aio_ctx, 1, &iocbp);