From: jxiong Date: Fri, 13 Jul 2007 10:17:20 +0000 (+0000) Subject: LC_PAGE_CONSTANT won't work because struct page is not defined, fixed it X-Git-Tag: v1_8_0_110~1470 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=63361b67782490aebb353a43ca9344ae6b3e0a8b;p=fs%2Flustre-release.git LC_PAGE_CONSTANT won't work because struct page is not defined, fixed it --- diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 3d34d0f..11e1dcd 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1017,7 +1017,9 @@ AC_DEFUN([LC_PAGE_CONSTANT], LB_LINUX_TRY_COMPILE([ #include ],[ - 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])