Add close_files() that closes all files
[fio.git] / filesetup.c
index b29db3f3f237032db28c1ec1d4fdc4cc6b6c050f..3e11c4c651050889457e37ccca6160204e81d0dd 100644 (file)
@@ -520,6 +520,15 @@ void close_files(struct thread_data *td)
        struct fio_file *f;
        unsigned int i;
 
+       for_each_file(td, f, i)
+               td_io_close_file(td, f);
+}
+
+void close_and_free_files(struct thread_data *td)
+{
+       struct fio_file *f;
+       unsigned int i;
+
        dprint(FD_FILE, "close files\n");
 
        for_each_file(td, f, i) {