Whamcloud - gitweb
LC_PAGE_CONSTANT won't work because struct page is not defined, fixed it
authorjxiong <jxiong>
Fri, 13 Jul 2007 10:17:20 +0000 (10:17 +0000)
committerjxiong <jxiong>
Fri, 13 Jul 2007 10:17:20 +0000 (10:17 +0000)
lustre/autoconf/lustre-core.m4

index 3d34d0f..11e1dcd 100644 (file)
@@ -1017,7 +1017,9 @@ AC_DEFUN([LC_PAGE_CONSTANT],
 LB_LINUX_TRY_COMPILE([
         #include <linux/page-flags.h>
 ],[
-        PageConstant((struct page *)NULL);
+        #ifndef PG_constant
+        #error "Have no raid5 zcopy patch"
+        #endif
 ],[
         AC_MSG_RESULT(yes)
         AC_DEFINE(HAVE_PAGE_CONSTANT, 1, [kernel have PageConstant supported])