engines: rename option specific pad from 'td' to 'pad'
authorJens Axboe <axboe@fb.com>
Wed, 29 Oct 2014 14:30:07 +0000 (08:30 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 29 Oct 2014 14:30:07 +0000 (08:30 -0600)
Except the net engine, they all just use it as padding to avoid
having a zero offset member. The latter makes the parser think
the offset isn't set, so not valid.

Signed-off-by: Jens Axboe <axboe@fb.com>
engines/cpu.c
engines/e4defrag.c
engines/gfapi.h
engines/libaio.c
engines/rbd.c

index 85598ef77fb9acd8d4868d6e15de1d9f64bee83f..7e4d7374accd24399a6d780639f5c94f05c5c9a3 100644 (file)
@@ -8,7 +8,7 @@
 #include "../fio.h"
 
 struct cpu_options {
 #include "../fio.h"
 
 struct cpu_options {
-       struct thread_data *td;
+       void *pad;
        unsigned int cpuload;
        unsigned int cpucycle;
        unsigned int exit_io_done;
        unsigned int cpuload;
        unsigned int cpucycle;
        unsigned int exit_io_done;
index 3599ab8a49ce708087c4ac88b18b74bd728bec95..6854070932a4d065a3989840b9b758cd4a0a494f 100644 (file)
@@ -36,7 +36,7 @@ struct e4defrag_data {
 };
 
 struct e4defrag_options {
 };
 
 struct e4defrag_options {
-       struct thread_data *td;
+       void *pad;
        unsigned int inplace;
        char * donor_name;
 };
        unsigned int inplace;
        char * donor_name;
 };
index 0da471c7499b5e4811f7c289b0930e14959ba6ac..1028431415e649af01e2457754a4944355f57a81 100644 (file)
@@ -2,7 +2,7 @@
 #include "../fio.h"
 
 struct gf_options {
 #include "../fio.h"
 
 struct gf_options {
-       struct thread_data *td;
+       void *pad;
        char *gf_vol;
        char *gf_brick;
 };
        char *gf_vol;
        char *gf_brick;
 };
index f7e2f8967c8900a1d5c6839dda1d746df5986b60..d4f48303becb8af99a63bcc0e1667a030bdd0a66 100644 (file)
@@ -37,7 +37,7 @@ struct libaio_data {
 };
 
 struct libaio_options {
 };
 
 struct libaio_options {
-       struct thread_data *td;
+       void *pad;
        unsigned int userspace_reap;
 };
 
        unsigned int userspace_reap;
 };
 
index f0a0e5bd16f9341ac6b3d35a448c12bf119e99c3..3688577f7404b242df88116946166a30f08dab60 100644 (file)
@@ -25,7 +25,7 @@ struct rbd_data {
 };
 
 struct rbd_options {
 };
 
 struct rbd_options {
-       struct thread_data *td;
+       void *pad;
        char *rbd_name;
        char *pool_name;
        char *client_name;
        char *rbd_name;
        char *pool_name;
        char *client_name;