patch-2.4.11-dontuse linux/mm/mmap.c
Next file: linux/mm/oom_kill.c
Previous file: linux/mm/memory.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sun Sep 30 11:05:40 2001
- Orig file:
v2.4.10/linux/mm/mmap.c
- Orig date:
Sun Sep 23 11:41:01 2001
diff -u --recursive --new-file v2.4.10/linux/mm/mmap.c linux/mm/mmap.c
@@ -67,8 +67,8 @@
if (sysctl_overcommit_memory)
return 1;
- free = atomic_read(&buffermem_pages);
- free += atomic_read(&page_cache_size);
+ /* The page cache contains buffer pages these days.. */
+ free = atomic_read(&page_cache_size);
free += nr_free_pages();
free += nr_swap_pages;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)