patch-1.3.18 linux/kernel/sys.c
Next file: linux/lib/string.c
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index
-  Lines: 9
 -  Date:
Thu Aug 10 09:05:26 1995
 -  Orig file: 
v1.3.17/linux/kernel/sys.c
 -  Orig date: 
Fri Jul  7 08:54:56 1995
 
diff -u --recursive --new-file v1.3.17/linux/kernel/sys.c linux/kernel/sys.c
@@ -436,7 +436,7 @@
 	freepages = buffermem >> 12;
 	freepages += nr_free_pages;
 	freepages += nr_swap_pages;
-	freepages -= (high_memory - 0x100000) >> 16;
+	freepages -= MAP_NR(high_memory) >> 4;
 	freepages -= (newbrk-oldbrk) >> 12;
 	if (freepages < 0)
 		return current->mm->brk;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this