Recent changes (master)

Jens Axboe
2016-07-12T12:00:05Z

The following changes since commit 0b2eef4940d9818f91f455d0cdb4f37db4fbb158:

samples being added to the pending log were silently dropped because we failed to set nr_samples in the new log they get copied into (2016-07-06 15:54:10 -0400)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 60a257279f249d65d9905e77d3a2fa54ac5aa881:

iolog: flush_log() can be bool (2016-07-11 11:51:58 -0700)

----------------------------------------------------------------
Jens Axboe (1):
iolog: flush_log() can be bool

backend.c | 2 +-
iolog.c | 2 +-
iolog.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

---

Diff of recent changes:

diff --git a/backend.c b/backend.c
index bb0200b..dc6f530 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 ff521df..4c87f1c 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 0da7067..a58e3f0 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);