From: Jens Axboe Date: Fri, 9 Jul 2010 11:47:32 +0000 (+0200) Subject: Only flag sync_file_range() support for newer Linux versions X-Git-Tag: fio-1.41.6~1 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=093729f73bc4be4095adc1743ad25bdeac0d3633;ds=inline Only flag sync_file_range() support for newer Linux versions Signed-off-by: Jens Axboe --- diff --git a/os/os-linux.h b/os/os-linux.h index b6ba569a..df0ec2db 100644 --- 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