projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
io_ddir: move count values out of the enum fio_ddir
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 1d586b171e8bccad658b8a05945723d89c2ae5a6..3cda60630d5d1f54ad1a7fa108b377e1da7c444e 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-490,6
+490,10
@@
static int __file_invalidate_cache(struct thread_data *td, struct fio_file *f,
ret = td->io_ops->invalidate(td, f);
if (ret < 0)
errval = -ret;
ret = td->io_ops->invalidate(td, f);
if (ret < 0)
errval = -ret;
+ } else if (td_ioengine_flagged(td, FIO_DISKLESSIO)) {
+ dprint(FD_IO, "invalidate not supported by ioengine %s\n",
+ td->io_ops->name);
+ ret = 0;
} else if (f->filetype == FIO_TYPE_FILE) {
dprint(FD_IO, "declare unneeded cache %s: %llu/%llu\n",
f->file_name, off, len);
} else if (f->filetype == FIO_TYPE_FILE) {
dprint(FD_IO, "declare unneeded cache %s: %llu/%llu\n",
f->file_name, off, len);
@@
-1628,8
+1632,6
@@
int add_file(struct thread_data *td, const char *fname, int numjob, int inc)
}
td->files_index++;
}
td->files_index++;
- if (f->filetype == FIO_TYPE_FILE)
- td->nr_normal_files++;
if (td->o.numjobs > 1)
set_already_allocated(file_name);
if (td->o.numjobs > 1)
set_already_allocated(file_name);
@@
-1855,7
+1857,6
@@
void free_release_files(struct thread_data *td)
td->o.nr_files = 0;
td->o.open_files = 0;
td->files_index = 0;
td->o.nr_files = 0;
td->o.open_files = 0;
td->files_index = 0;
- td->nr_normal_files = 0;
}
void fio_file_reset(struct thread_data *td, struct fio_file *f)
}
void fio_file_reset(struct thread_data *td, struct fio_file *f)