patch-1.3.22 linux/kernel/sys.c
Next file: linux/kernel/time.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Tue Aug 29 10:15:53 1995
- Orig file:
v1.3.21/linux/kernel/sys.c
- Orig date:
Sun Aug 13 14:45:35 1995
diff -u --recursive --new-file v1.3.21/linux/kernel/sys.c linux/kernel/sys.c
@@ -433,11 +433,11 @@
* simple, it hopefully works in most obvious cases.. Easy to
* fool it, but this should catch most mistakes.
*/
- freepages = buffermem >> 12;
+ freepages = buffermem >> PAGE_SHIFT;
freepages += nr_free_pages;
freepages += nr_swap_pages;
freepages -= MAP_NR(high_memory) >> 4;
- freepages -= (newbrk-oldbrk) >> 12;
+ freepages -= (newbrk-oldbrk) >> PAGE_SHIFT;
if (freepages < 0)
return current->mm->brk;
#if 0
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this