Fix invalidate cache typo
authorJens Axboe <jens.axboe@oracle.com>
Thu, 8 Mar 2007 11:49:37 +0000 (12:49 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 8 Mar 2007 11:49:37 +0000 (12:49 +0100)
The odirect check was reversed.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c

index f400458..9988498 100644 (file)
@@ -227,7 +227,7 @@ int file_invalidate_cache(struct thread_data *td, struct fio_file *f)
 
        if (!td->invalidate_cache)
                return 0;
-       if (!td->odirect)
+       if (td->odirect)
                return 0;
 
        /*