From 66ee4002731302216f47f9088d639bcba1c78200 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 9 Jun 2014 19:52:05 -0600 Subject: [PATCH] Reset file count when freeing files This fixes and oops with iolog replay, and a manually specified filename= Signed-off-by: Jens Axboe --- filesetup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filesetup.c b/filesetup.c index 84eaed68..2049fd65 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1524,6 +1524,8 @@ int get_fileno(struct thread_data *td, const char *fname) void free_release_files(struct thread_data *td) { close_files(td); + td->o.nr_files = 0; + td->o.open_files = 0; td->files_index = 0; td->nr_normal_files = 0; } -- 2.25.1