t/dedupe: use fio abstracted OS_O_DIRECT
[fio.git] / t / dedupe.c
index 0a033a4c91e48e77b6a0790b0cf5c45bee4d6134..030b4fc9d00f167b2d0eea363f03e73fdb469060 100644 (file)
@@ -11,7 +11,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>
-#include <linux/fs.h>
 #include <fcntl.h>
 #include <string.h>
 
@@ -432,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);