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
- Lines: 17
- Date:
Wed Sep 25 12:15:57 1996
- Orig file:
lx2.0/v2.0.21/linux/fs/buffer.c
- Orig date:
Fri Sep 20 17:00:35 1996
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