projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
525c2bf
)
Only flag sync_file_range() support for newer Linux versions
author
Jens Axboe
<jaxboe@fusionio.com>
Fri, 9 Jul 2010 11:47:32 +0000
(13:47 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Fri, 9 Jul 2010 11:47:32 +0000
(13:47 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
os/os-linux.h
patch
|
blob
|
blame
|
history
diff --git
a/os/os-linux.h
b/os/os-linux.h
index b6ba569a46f603a389a12d959b19820be801079a..df0ec2dbdb51a692cc52f93097a0238844aad1ef 100644
(file)
--- a/
os/os-linux.h
+++ b/
os/os-linux.h
@@
-35,9
+35,12
@@
#define FIO_HAVE_CL_SIZE
#define FIO_HAVE_CGROUPS
#define FIO_HAVE_FDATASYNC
-#define FIO_HAVE_SYNC_FILE_RANGE
#define FIO_HAVE_FS_STAT
+#ifdef SYNC_FILE_RANGE_WAIT_BEFORE
+#define FIO_HAVE_SYNC_FILE_RANGE
+#endif
+
#define OS_MAP_ANON MAP_ANONYMOUS
#ifndef CLOCK_MONOTONIC