The following changes since commit b0ff22d7b23118b6c7dc56f2256ce6dde634422a: gettime: even rounding, don't always round up (2013-01-01 13:38:18 +0100) are available in the git repository at: git://git.kernel.dk/fio.git master Jens Axboe (1): libaio: use container_of() instead of silly casting engines/libaio.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) --- Diff of recent changes: diff --git a/engines/libaio.c b/engines/libaio.c index bc459da..f17260d 100644 --- a/engines/libaio.c +++ b/engines/libaio.c @@ -14,8 +14,6 @@ #ifdef FIO_HAVE_LIBAIO -#define ev_to_iou(ev) (struct io_u *) ((unsigned long) (ev)->obj) - struct libaio_data { io_context_t aio_ctx; struct io_event *aio_events; @@ -62,7 +60,7 @@ static struct io_u *fio_libaio_event(struct thread_data *td, int event) struct io_u *io_u; ev = ld->aio_events + event; - io_u = ev_to_iou(ev); + io_u = container_of(ev->obj, struct io_u, iocb); if (ev->res != io_u->xfer_buflen) { if (ev->res > io_u->xfer_buflen) -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html