projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add close_files() that closes all files
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index b29db3f3f237032db28c1ec1d4fdc4cc6b6c050f..3e11c4c651050889457e37ccca6160204e81d0dd 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-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) {