X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=filesetup.c;h=1facccd79f995021c03b80dead4a103b067c9189;hb=9342d5f807795f973fb76c89c48d8e4afd5e5887;hp=84eaed68c230520f47bd2853cb20225c078938ef;hpb=d9b100fc117a963334fb71b8b662be90cd456068;p=fio.git diff --git a/filesetup.c b/filesetup.c index 84eaed68..1facccd7 100644 --- a/filesetup.c +++ b/filesetup.c @@ -390,6 +390,10 @@ static int __file_invalidate_cache(struct thread_data *td, struct fio_file *f, { int ret = 0; +#ifdef CONFIG_ESX + return 0; +#endif + if (len == -1ULL) len = f->io_size; if (off == -1ULL) @@ -1524,6 +1528,8 @@ int get_fileno(struct thread_data *td, const char *fname) void free_release_files(struct thread_data *td) { close_files(td); + td->o.nr_files = 0; + td->o.open_files = 0; td->files_index = 0; td->nr_normal_files = 0; }