]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: vmscan: move logic from balance_pgdat() to kswapd_shrink_zone()
authorMel Gorman <mgorman@suse.de>
Thu, 23 May 2013 00:37:19 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:09:05 +0000 (16:09 +1000)
commit59543ba9a4573b3cfaf10f0cbc50871322da0113
tree5f0f57617eb8489da7d75ca79c21c082a6baa058
parentceab61aecee3dff5d9e0fdca0619a8c5c1c4ea6b
mm: vmscan: move logic from balance_pgdat() to kswapd_shrink_zone()

balance_pgdat() is very long and some of the logic can and should be
internal to kswapd_shrink_zone().  Move it so the flow of balance_pgdat()
is marginally easier to follow.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Cc: Zlatko Calusic <zcalusic@bitsync.net>
Cc: dormando <dormando@rydia.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c