From: Jens Axboe Date: Mon, 11 Jun 2012 06:58:42 +0000 (+0200) Subject: blktrace: use for_each_file() instead of open coding the loop X-Git-Tag: fio-2.0.9~16 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=adfc73488616bac66f910d53c75202d5be8afe87;ds=sidebyside blktrace: use for_each_file() instead of open coding the loop Signed-off-by: Jens Axboe --- diff --git a/blktrace.c b/blktrace.c index e195f7f1..dea1be4f 100644 --- a/blktrace.c +++ b/blktrace.c @@ -418,10 +418,8 @@ int load_blktrace(struct thread_data *td, const char *filename) } } while (1); - for (i = 0; i < td->files_index; i++) { - f= td->files[i]; + for_each_file(td, f, i) trace_add_open_close_event(td, f->fileno, FIO_LOG_CLOSE_FILE); - } fifo_free(fifo); close(fd);