stat: ensure that we align ts->sync_stat appropriately
[fio.git] / stat.h
diff --git a/stat.h b/stat.h
index e32a21ec55f2453c73ad2aad4faf580ee7fb18ff..cc91dfcc332e8a96748b326f9a6a0cda7b421230 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -159,10 +159,10 @@ struct thread_stat {
        /*
         * bandwidth and latency stats
         */
+       struct io_stat sync_stat __attribute__((aligned(8)));/* fsync etc stats */
        struct io_stat clat_stat[DDIR_RWDIR_CNT]; /* completion latency */
        struct io_stat slat_stat[DDIR_RWDIR_CNT]; /* submission latency */
        struct io_stat lat_stat[DDIR_RWDIR_CNT]; /* total latency */
-       struct io_stat sync_stat;               /* fsync etc stats */
        struct io_stat bw_stat[DDIR_RWDIR_CNT]; /* bandwidth stats */
        struct io_stat iops_stat[DDIR_RWDIR_CNT]; /* IOPS stats */
 
@@ -192,7 +192,7 @@ struct thread_stat {
        uint32_t io_u_sync_plat[FIO_IO_U_PLAT_NR];
        uint32_t pad;
 
-       uint64_t total_io_u[DDIR_RWDIR_CNT];
+       uint64_t total_io_u[DDIR_RWDIR_SYNC_CNT];
        uint64_t short_io_u[DDIR_RWDIR_CNT];
        uint64_t drop_io_u[DDIR_RWDIR_CNT];
        uint64_t total_submit;