Add close_files() that closes all files
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 0c5b64874cdd81e3d96dadcf56443cd7392e6923..4fbc704498aa521519c903cfea88466daa2e25cc 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -563,7 +563,7 @@ struct thread_data {
        unsigned long long io_skip_bytes;
        unsigned long long this_io_bytes[2];
        unsigned long long zone_bytes;
-       struct fio_sem *mutex;
+       struct fio_mutex *mutex;
 
        /*
         * State for random io, a bitmap of blocks done vs not done
@@ -800,6 +800,7 @@ extern void options_mem_free(struct thread_data *);
  * File setup/shutdown
  */
 extern void close_files(struct thread_data *);
+extern void close_and_free_files(struct thread_data *);
 extern int __must_check setup_files(struct thread_data *);
 extern int __must_check open_files(struct thread_data *);
 extern int __must_check file_invalidate_cache(struct thread_data *, struct fio_file *);