Whamcloud - gitweb
b=20451
authorbrian <brian>
Tue, 10 Nov 2009 21:56:06 +0000 (21:56 +0000)
committerbrian <brian>
Tue, 10 Nov 2009 21:56:06 +0000 (21:56 +0000)
i=yangsheng
i=johann

Evidently (Ubuntu's, at least) 2.6.28 needs to include linux/pagemap.h
to get the prototype for grab_cache_page_write_begin().

lustre/autoconf/lustre-core.m4

index 6e66130..a2bcb57 100644 (file)
@@ -1635,6 +1635,7 @@ LB_LINUX_TRY_COMPILE([
 #ifdef HAVE_LINUX_MMTYPES_H
         #include <linux/mm_types.h>
 #endif
+        #include <linux/pagemap.h>
 ],[
         struct address_space_operations aops;
         struct page *page;