From 093729f73bc4be4095adc1743ad25bdeac0d3633 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 9 Jul 2010 13:47:32 +0200 Subject: [PATCH] Only flag sync_file_range() support for newer Linux versions Signed-off-by: Jens Axboe --- os/os-linux.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.25.1