projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://router/data/git/fio
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 4f3d6cdf7ea4e4e62915343e00e2c5ede8bb52bd..57735a96dacffe0e798b733b64f7f2dd187d97b2 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-374,11
+374,10
@@
int setup_files(struct thread_data *td)
void close_files(struct thread_data *td)
{
void close_files(struct thread_data *td)
{
+ struct fio_file *f;
int i;
int i;
- for (i = 0; i < td->nr_files; i++) {
- struct fio_file *f = &td->files[i];
-
+ for_each_file(td, f, i) {
if (f->fd != -1) {
if (td->unlink && td->filetype == FIO_TYPE_FILE)
unlink(f->file_name);
if (f->fd != -1) {
if (td->unlink && td->filetype == FIO_TYPE_FILE)
unlink(f->file_name);