X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=iolog.h;h=bc3a0b5fea93770fa39309fb71526c751e803034;hp=6274aef9e86c92b6dc44539651a7d234180c0e69;hb=51102e0d64a2ae08472ecb90a72737f08de942fb;hpb=858bce7034e75e3134245c0262fa49473100dd44 diff --git a/iolog.h b/iolog.h index 6274aef9..bc3a0b5f 100644 --- a/iolog.h +++ b/iolog.h @@ -117,7 +117,7 @@ struct io_log { */ struct io_stat avg_window[DDIR_RWDIR_CNT]; unsigned long avg_msec; - unsigned long avg_last; + unsigned long avg_last[DDIR_RWDIR_CNT]; /* * Windowed latency histograms, for keeping track of when we need to @@ -264,7 +264,7 @@ struct log_params { static inline bool per_unit_log(struct io_log *log) { - return log && !log->avg_msec; + return log && (!log->avg_msec || log->log_gz || log->log_gz_store); } static inline bool inline_log(struct io_log *log)