patch-2.1.129 linux/mm/vmscan.c

Next file: linux/net/802/fddi.c
Previous file: linux/mm/swapfile.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.128/linux/mm/vmscan.c linux/mm/vmscan.c
@@ -538,7 +538,7 @@
 		do {
 			if (!do_try_to_free_page(0))
 				break;
-			if (nr_free_pages > 2*freepages.high)
+			if (nr_free_pages > freepages.high + SWAP_CLUSTER_MAX)
 				break;
 		} while (time_before_eq(jiffies,end_time));
 	}
@@ -621,8 +621,6 @@
 		 * priority.
 		 */
 		want_wakeup = 0;
-		if (buffer_over_max() || pgcache_over_max())
-			want_wakeup = 1;
 		pages = nr_free_pages;
 		if (pages < freepages.high)
 			want_wakeup = 1;

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