patch-2.2.0-pre7 linux/mm/vmscan.c

Next file: linux/net/ipv4/Config.in
Previous file: linux/mm/swapfile.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre6/linux/mm/vmscan.c linux/mm/vmscan.c
@@ -439,7 +439,7 @@
 		 * forever in a really bad memory squeeze.
 		 */
 		if (nr_free_pages < freepages.high)
-			try_to_free_pages(0, 16);
+			try_to_free_pages(GFP_KSWAPD);
 	}
 
 	return 0;
@@ -454,9 +454,10 @@
  * cluster them so that we get good swap-out behaviour. See
  * the "free_memory()" macro for details.
  */
-int try_to_free_pages(unsigned int gfp_mask, int count)
+int try_to_free_pages(unsigned int gfp_mask)
 {
 	int priority;
+	int count = SWAP_CLUSTER_MAX;
 
 	lock_kernel();
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov