Remove io_u->endpos
authorJens Axboe <jens.axboe@oracle.com>
Fri, 22 May 2009 07:51:20 +0000 (09:51 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 22 May 2009 07:51:20 +0000 (09:51 +0200)
It's only set in one location and never read.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.h
io_u.c

diff --git a/fio.h b/fio.h
index b1360dd3504f69dde093e5fd518f0fc23556a558..22d670ef1cacb02e708a53b6fe804725970e7dd8 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -145,7 +145,6 @@ struct io_u {
        void *buf;
        unsigned long buflen;
        unsigned long long offset;
-       unsigned long long endpos;
 
        /*
         * IO engine state, may be different from above when we get
diff --git a/io_u.c b/io_u.c
index 1e9018c4f6ee85bc5362aea312b9b2ec15a15978..47c02e0ad135dea4da458da5e0116084dd7885d7 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -848,7 +848,6 @@ struct io_u *get_io_u(struct thread_data *td)
        /*
         * Set io data pointers.
         */
-       io_u->endpos = io_u->offset + io_u->buflen;
        io_u->xfer_buf = io_u->buf;
        io_u->xfer_buflen = io_u->buflen;