* [PATCH] vm_enough_memory too generous
@ 2001-06-15 18:28 Hugh Dickins
0 siblings, 0 replies; only message in thread
From: Hugh Dickins @ 2001-06-15 18:28 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Alan Cox, Marcelo Tosatti, Andrea Arcangeli, linux-mm
When free_page_and_swap_cache() went on vacation in April, we had
to compensate in vm_enough_memory(): now it's back, that should go.
Hugh
--- linux-2.4.6-pre3/mm/mmap.c Thu May 24 23:20:18 2001
+++ linux/mm/mmap.c Fri Jun 15 19:00:00 2001
@@ -66,14 +66,6 @@
free += nr_swap_pages;
/*
- * This double-counts: the nrpages are both in the page-cache
- * and in the swapper space. At the same time, this compensates
- * for the swap-space over-allocation (ie "nr_swap_pages" being
- * too small.
- */
- free += swapper_space.nrpages;
-
- /*
* The code below doesn't account for free space in the inode
* and dentry slab cache, slab cache fragmentation, inodes and
* dentries which will become freeable under VM load, etc.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-06-15 18:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-15 18:28 [PATCH] vm_enough_memory too generous Hugh Dickins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox