patch-2.3.27 linux/mm/mmap.c

Next file: linux/mm/page_alloc.c
Previous file: linux/mm/memory.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.26/linux/mm/mmap.c linux/mm/mmap.c
@@ -64,7 +64,7 @@
 
 	free = atomic_read(&buffermem_pages);
 	free += atomic_read(&page_cache_size);
-	free += nr_free_pages;
+	free += nr_free_pages();
 	free += nr_swap_pages;
 	return free > pages;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)