From: Jens Axboe Date: Mon, 11 Jul 2016 18:51:58 +0000 (-0700) Subject: iolog: flush_log() can be bool X-Git-Tag: fio-2.13~20 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=60a257279f249d65d9905e77d3a2fa54ac5aa881 iolog: flush_log() can be bool Signed-off-by: Jens Axboe --- diff --git a/backend.c b/backend.c index bb0200bb..dc6f530d 100644 --- 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]; - flush_log(log, 0); + flush_log(log, false); free_log(log); } } diff --git a/iolog.c b/iolog.c index ff521df4..4c87f1cb 100644 --- a/iolog.c +++ b/iolog.c @@ -965,7 +965,7 @@ int iolog_file_inflate(const char *file) #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; diff --git a/iolog.h b/iolog.h index 0da70670..a58e3f09 100644 --- 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 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);