aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorMinChan Kim <minchan.kim@gmail.com>2009-03-31 15:19:34 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-01 08:59:12 -0700
commitd979677c4c02f0a72db5a03ecd8184bd9d6695c8 (patch)
tree370c936bb17210db0db80df0e9b488c6ee5c11a1 /mm/page_alloc.c
parent0a0dd05dd7e1a800241888cbf515bf8d3dc2e59c (diff)
downloadkernel_samsung_smdk4412-d979677c4c02f0a72db5a03ecd8184bd9d6695c8.tar.gz
kernel_samsung_smdk4412-d979677c4c02f0a72db5a03ecd8184bd9d6695c8.tar.bz2
kernel_samsung_smdk4412-d979677c4c02f0a72db5a03ecd8184bd9d6695c8.zip
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>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions