patch-2.0.21-2.1.0 linux/fs/buffer.c

Next file: linux/fs/dquot.c
Previous file: linux/fs/block_dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file lx2.0/v2.0.21/linux/fs/buffer.c linux/fs/buffer.c
@@ -30,6 +30,7 @@
 #include <linux/swapctl.h>
 #include <linux/smp.h>
 #include <linux/smp_lock.h>
+#include <linux/vmalloc.h>
 
 #include <asm/system.h>
 #include <asm/segment.h>
@@ -1865,7 +1866,7 @@
 {
 	int i;
 	int isize = BUFSIZE_INDEX(BLOCK_SIZE);
-	long memsize = MAP_NR(high_memory) << PAGE_SHIFT;
+	long memsize = max_mapnr << PAGE_SHIFT;
 
 	if (memsize >= 64*1024*1024)
 		nr_hash = 65521;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov