[PATCH] Shrink io_u a little
authorJens Axboe <jens.axboe@oracle.com>
Tue, 24 Oct 2006 10:17:57 +0000 (12:17 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 24 Oct 2006 10:17:57 +0000 (12:17 +0200)
->index and ->seen can share the same space, they are both io engine
private.

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

diff --git a/fio.h b/fio.h
index dc2f84bad5778ff72252ecbb341dd6fd428d1bc8..921282cc61cb8bcc741934689c4381217221456b 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -66,14 +66,20 @@ struct io_u {
        char *buf;
        unsigned int buflen;
        unsigned long long offset;
        char *buf;
        unsigned int buflen;
        unsigned long long offset;
-       unsigned int index;
 
        unsigned int resid;
        unsigned int error;
 
 
        unsigned int resid;
        unsigned int error;
 
-       unsigned char seen;
        unsigned char ddir;
 
        unsigned char ddir;
 
+       /*
+        * io engine private data
+        */
+       union {
+               unsigned int index;
+               unsigned int seen;
+       };
+
        struct fio_file *file;
 
        struct list_head list;
        struct fio_file *file;
 
        struct list_head list;