From 51852280c02ed3a3dbac4346b9dd1ec7cc7ca8ca Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 27 May 2006 20:32:34 +0200 Subject: [PATCH] [PATCH] fio_spliceio_event() used wrong private type --- fio-io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fio-io.c b/fio-io.c index f3606e17..f5d48fd2 100644 --- a/fio-io.c +++ b/fio-io.c @@ -760,7 +760,7 @@ struct spliceio_data { static struct io_u *fio_spliceio_event(struct thread_data *td, int event) { - struct syncio_data *sd = td->io_data; + struct spliceio_data *sd = td->io_data; assert(event == 0); @@ -780,7 +780,7 @@ static int fio_splice_read(struct thread_data *td, struct io_u *io_u) buflen = io_u->buflen; p = io_u->buf; - do { + while (buflen) { off_t off = io_u->offset; ret = splice(td->fd, &off, sd->pipe[1], NULL, buflen, 0); @@ -797,7 +797,7 @@ static int fio_splice_read(struct thread_data *td, struct io_u *io_u) ret -= ret2; p += ret2; } - } while (buflen); + } return io_u->buflen; } -- 2.25.1