Whamcloud - gitweb
LU-5912 build: Fix XeonPhi build 30/13730/2
authorDmitry Eremin <dmitry.eremin@intel.com>
Wed, 11 Feb 2015 13:39:31 +0000 (16:39 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 27 Feb 2015 07:48:33 +0000 (07:48 +0000)
Need an extra check for old kernel style parameters.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I92b1b8579d2190bf526b3194cd83d0917fb3b4af
Reviewed-on: http://review.whamcloud.com/13730
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/linux/linux-fs.h

index c0a44d2..9051491 100644 (file)
@@ -66,7 +66,7 @@
 #define filp_write(fp, buf, size, pos)                 \
        ((fp)->f_op->write((fp), (buf), (size), pos))
 
 #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
 #define ll_vfs_fsync_range(fp, start, end, datasync) \
        vfs_fsync_range(fp, start, end, datasync)
 #else