Andrew Morton
76395d3761
[PATCH] shrink_all_memory(): fix lru_pages handling
...
At the end of shrink_all_memory() we forget to recalculate lru_pages: it can
be zero.
Fix that up, and add a helper function for this operation too.
Also, recalculate lru_pages each time around the inner loop to get the
balancing correct.
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2007-01-05 23:55:29 -08:00
..
2006-12-07 08:39:22 -08:00
2006-10-20 10:26:35 -07:00
2006-12-07 08:39:44 -08:00
2006-09-30 20:32:11 +02:00
2006-12-08 08:28:43 -08:00
2006-12-22 08:55:49 -08:00
2006-12-10 09:57:21 -08:00
2006-10-04 03:38:54 -04:00
2006-12-22 08:55:49 -08:00
2006-09-30 20:32:11 +02:00
2006-12-13 09:27:08 -08:00
2006-09-26 08:48:44 -07:00
2006-10-03 22:53:09 +02:00
2006-04-17 18:22:18 -07:00
2006-10-20 10:26:35 -07:00
2006-12-07 08:39:20 -08:00
2006-12-22 08:55:49 -08:00
2006-12-08 08:28:47 -08:00
2006-09-01 11:39:09 -07:00
2006-12-07 08:39:25 -08:00
2006-12-17 10:21:53 -08:00
2006-12-07 08:39:22 -08:00
2006-12-08 08:28:43 -08:00
2006-12-07 08:39:44 -08:00
2006-10-01 00:39:33 -07:00
2006-10-01 00:39:33 -07:00
2006-09-26 08:48:45 -07:00
2006-12-08 08:28:47 -08:00
2007-01-05 23:55:29 -08:00
2007-01-05 23:55:29 -08:00
2006-12-07 08:39:27 -08:00
2006-12-29 10:00:58 -08:00
2006-12-07 08:39:27 -08:00
2005-04-16 15:20:36 -07:00
2006-12-10 09:55:41 -08:00
2006-12-30 10:56:42 -08:00
2006-10-11 11:14:23 -07:00
2006-12-22 08:55:47 -08:00
2007-01-05 23:55:23 -08:00
2006-12-30 10:56:42 -08:00
2006-12-07 08:39:23 -08:00
2006-07-03 15:27:02 -07:00
2006-12-07 08:39:39 -08:00
2007-01-05 23:55:22 -08:00
2006-12-07 08:39:22 -08:00
2006-12-08 08:28:47 -08:00
2006-12-23 09:25:04 -08:00
2006-10-04 07:55:13 -07:00
2006-11-16 11:43:38 -08:00
2007-01-05 23:55:29 -08:00
2006-12-07 08:39:46 -08:00