--- /dev/null
+Index: linux/mm/page_alloc.c
+===================================================================
+--- linux.orig/mm/page_alloc.c
++++ linux/mm/page_alloc.c
+@@ -875,6 +875,7 @@ unsigned int nr_free_buffer_pages(void)
+ {
+ return nr_free_zone_pages(GFP_USER & GFP_ZONEMASK);
+ }
++EXPORT_SYMBOL(nr_free_buffer_pages);
+
+ /*
+ * Amount of free RAM allocatable within all zones
*
* Size of lu_object is (arbitrary) taken as 1K (together with inode).
*/
- cache_size = nr_free_pages() / 100 *
+ cache_size = nr_free_buffer_pages() / 100 *
LU_CACHE_PERCENT * (CFS_PAGE_SIZE / 1024);
for (bits = 1; (1 << bits) < cache_size; ++bits) {