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 f4004588fcd4f9ac803322528d8a5f5876027510..9988498b0907a3ab92aef49eda94b48f49262ac1 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;
 
        /*