X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fwindowsaio.c;h=a66b1df4ee1162e704d0360e5acba8de1c22bd27;hb=0bcf41cdc22dfee6b3f3b2ba9a533b4b103c70c2;hp=2b12ddd01f69c85258ee7739ff90ade6c038be91;hpb=8300eba59e941f917fcc27ae10126e51bf0935b5;p=fio.git diff --git a/engines/windowsaio.c b/engines/windowsaio.c index 2b12ddd0..a66b1df4 100644 --- a/engines/windowsaio.c +++ b/engines/windowsaio.c @@ -240,9 +240,8 @@ static int fio_windowsaio_open_file(struct thread_data *td, struct fio_file *f) /* If we're going to use direct I/O, Windows will try and invalidate * its cache at that point so there's no need to do it here */ - if (td->o.invalidate_cache && !td->o.odirect) { + if (td->o.invalidate_cache && !td->o.odirect) windowsaio_invalidate_cache(f); - } f->hFile = CreateFile(f->file_name, access, sharemode, NULL, openmode, flags, NULL);