stat: use DDIR_RWDIR_CNT instead of hardwired '3'
authorJens Axboe <axboe@fb.com>
Mon, 30 Nov 2015 23:06:22 +0000 (16:06 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 30 Nov 2015 23:06:22 +0000 (16:06 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
stat.h

diff --git a/stat.h b/stat.h
index 028351124d11395d1af7d2f23e3bc7afaa779612..4264943867346613ab1ee38cc4fe4f0d5969b6e4 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -183,9 +183,9 @@ struct thread_stat {
        uint32_t io_u_plat[DDIR_RWDIR_CNT][FIO_IO_U_PLAT_NR];
        uint32_t pad;
 
        uint32_t io_u_plat[DDIR_RWDIR_CNT][FIO_IO_U_PLAT_NR];
        uint32_t pad;
 
-       uint64_t total_io_u[3];
-       uint64_t short_io_u[3];
-       uint64_t drop_io_u[3];
+       uint64_t total_io_u[DDIR_RWDIR_CNT];
+       uint64_t short_io_u[DDIR_RWDIR_CNT];
+       uint64_t drop_io_u[DDIR_RWDIR_CNT];
        uint64_t total_submit;
        uint64_t total_complete;
 
        uint64_t total_submit;
        uint64_t total_complete;