From: Dmitry Eremin Date: Wed, 11 Feb 2015 13:39:31 +0000 (+0300) Subject: LU-5912 build: Fix XeonPhi build X-Git-Tag: 2.7.51~91 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=88a0262fdea8eadd620e0adf593332203465673d;ds=sidebyside LU-5912 build: Fix XeonPhi build Need an extra check for old kernel style parameters. Signed-off-by: Dmitry Eremin Change-Id: I92b1b8579d2190bf526b3194cd83d0917fb3b4af Reviewed-on: http://review.whamcloud.com/13730 Tested-by: Jenkins Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/libcfs/include/libcfs/linux/linux-fs.h b/libcfs/include/libcfs/linux/linux-fs.h index c0a44d2..9051491 100644 --- a/libcfs/include/libcfs/linux/linux-fs.h +++ b/libcfs/include/libcfs/linux/linux-fs.h @@ -66,7 +66,7 @@ #define filp_write(fp, buf, size, pos) \ ((fp)->f_op->write((fp), (buf), (size), pos)) -#ifdef HAVE_FILE_FSYNC_4ARGS +#if defined(HAVE_FILE_FSYNC_4ARGS) || defined(HAVE_FILE_FSYNC_2ARGS) #define ll_vfs_fsync_range(fp, start, end, datasync) \ vfs_fsync_range(fp, start, end, datasync) #else