]> git.baikalelectronics.ru Git - kernel.git/commit
mm: shrink_all_memory(): use sc.nr_reclaimed
authorMinChan Kim <minchan.kim@gmail.com>
Tue, 31 Mar 2009 22:19:34 +0000 (15:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2009 15:59:12 +0000 (08:59 -0700)
commitf81e489a7398f4c095594cd3aa10411cebc71603
tree370c936bb17210db0db80df0e9b488c6ee5c11a1
parent6ef72cd1d20c529899bd354f0e62e5be9214796d
mm: shrink_all_memory(): use sc.nr_reclaimed

Commit 965e39a22446b22960b86dce526c5aa435d30ddd "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>
mm/vmscan.c