MinChan Kim d979677c4c mm: shrink_all_memory(): use sc.nr_reclaimed
Commit a79311c14eae4bb946a97af25f3e1b17d625985d "vmscan: bail out of
direct reclaim after swap_cluster_max pages" moved the nr_reclaimed
counter into the scan control to accumulate the number of all reclaimed
pages in a reclaim invocation.

shrink_all_memory() can use the same mechanism. it increase code
consistency and redability.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: MinChan Kim <minchan.kim@gmail.com>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-04-01 08:59:12 -07:00
..
2008-12-29 11:27:46 +02:00
2009-01-06 15:59:14 -08:00
2009-03-24 10:52:46 +11:00
2008-07-28 16:30:21 -07:00
2008-06-12 18:05:41 -07:00
2009-02-11 14:25:35 -08:00
2009-03-24 10:52:46 +11:00
2009-01-08 08:31:05 -08:00
2009-01-08 08:31:08 -08:00
2009-02-20 17:57:48 -08:00