Whamcloud - gitweb
Branch b_release_1_8_1
authoryangsheng <yangsheng>
Wed, 24 Jun 2009 13:26:02 +0000 (13:26 +0000)
committeryangsheng <yangsheng>
Wed, 24 Jun 2009 13:26:02 +0000 (13:26 +0000)
b=19553

i=johann, shadow

Workaround for SLES10 + OFED-1.4.1.

lustre/autoconf/lustre-core.m4

index 46c6768..f15857e 100644 (file)
@@ -1038,6 +1038,10 @@ LB_LINUX_TRY_COMPILE([
         #include <linux/mm.h>
         #include <linux/page-flags.h>
 ],[
+        /* tmp workaround for broken OFED 1.4.1 at SLES10 */
+        #if defined(CONFIG_SLE_VERSION) && CONFIG_SLE_VERSION == 10 && defined(_BACKPORT_LINUX_MM_H_)
+        #error badly implementation of cancel_dirty_pages
+        #endif
         cancel_dirty_page(NULL, 0);
 ],[
         AC_MSG_RESULT(yes)