t/dedupe: use fio abstracted OS_O_DIRECT
authorJens Axboe <axboe@fb.com>
Tue, 7 Oct 2014 14:51:23 +0000 (08:51 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 7 Oct 2014 14:51:23 +0000 (08:51 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
t/dedupe.c

index 7edb3d8..030b4fc 100644 (file)
@@ -431,7 +431,7 @@ static int dedupe_check(const char *filename, uint64_t *nextents,
 
        flags = O_RDONLY;
        if (odirect)
-               flags |= O_DIRECT;
+               flags |= OS_O_DIRECT;
 
        memset(&file, 0, sizeof(file));
        file.file_name = strdup(filename);