iolog: remove 'td' from trim_io_piece()
[fio.git] / iolog.c
diff --git a/iolog.c b/iolog.c
index 13040b686a58889c23275845ab666624c02780e1..d7474724f0d140cd4e66b5136f47aedb2002ddcd 100644 (file)
--- a/iolog.c
+++ b/iolog.c
@@ -315,7 +315,7 @@ void unlog_io_piece(struct thread_data *td, struct io_u *io_u)
        td->io_hist_len--;
 }
 
-void trim_io_piece(struct thread_data *td, const struct io_u *io_u)
+void trim_io_piece(const struct io_u *io_u)
 {
        struct io_piece *ipo = io_u->ipo;
 
@@ -580,7 +580,7 @@ bool init_iolog(struct thread_data *td)
        } else if (td->o.write_iolog_file)
                ret = init_iolog_write(td);
        else
-               ret = false;
+               ret = true;
 
        if (!ret)
                td_verror(td, EINVAL, "failed initializing iolog");