iolog: flush_log() can be bool
authorJens Axboe <axboe@fb.com>
Mon, 11 Jul 2016 18:51:58 +0000 (11:51 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 11 Jul 2016 18:51:58 +0000 (11:51 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c
iolog.c
iolog.h

index bb0200bb2b0fdb29c80aacdc03ca1b026385191e..dc6f530df9b39dcaaed6b8089311ba964e350d9f 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -2388,7 +2388,7 @@ int fio_backend(struct sk_out *sk_out)
                        for (i = 0; i < DDIR_RWDIR_CNT; i++) {
                                struct io_log *log = agg_io_log[i];
 
                        for (i = 0; i < DDIR_RWDIR_CNT; i++) {
                                struct io_log *log = agg_io_log[i];
 
-                               flush_log(log, 0);
+                               flush_log(log, false);
                                free_log(log);
                        }
                }
                                free_log(log);
                        }
                }
diff --git a/iolog.c b/iolog.c
index ff521df4719818e2ecf368ef021e1763be5a1f3b..4c87f1cb88d723f90712da14474ce2d1fe71deba 100644 (file)
--- a/iolog.c
+++ b/iolog.c
@@ -965,7 +965,7 @@ int iolog_file_inflate(const char *file)
 
 #endif
 
 
 #endif
 
-void flush_log(struct io_log *log, int do_append)
+void flush_log(struct io_log *log, bool do_append)
 {
        void *buf;
        FILE *f;
 {
        void *buf;
        FILE *f;
diff --git a/iolog.h b/iolog.h
index 0da70670c796ef1e8685394d88bb455a843d917b..a58e3f09376b843775f57428c8023c1fe31cb3e9 100644 (file)
--- a/iolog.h
+++ b/iolog.h
@@ -232,7 +232,7 @@ static inline bool per_unit_log(struct io_log *log)
 
 extern void finalize_logs(struct thread_data *td, bool);
 extern void setup_log(struct io_log **, struct log_params *, const char *);
 
 extern void finalize_logs(struct thread_data *td, bool);
 extern void setup_log(struct io_log **, struct log_params *, const char *);
-extern void flush_log(struct io_log *, int);
+extern void flush_log(struct io_log *, bool);
 extern void flush_samples(FILE *, void *, uint64_t);
 extern void free_log(struct io_log *);
 extern void fio_writeout_logs(bool);
 extern void flush_samples(FILE *, void *, uint64_t);
 extern void free_log(struct io_log *);
 extern void fio_writeout_logs(bool);