]> 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, 27 Jun 2013 23:51:28 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:31 +0000 (16:37 +1000)
commit0ff3126ca39abf4564ba675699d56ac0a49bfc99
tree096998d7249bb86255a630ec0f1315575550b9e8
parent9cb3719723186e6e53a18002cbbf5d76679f0172
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>
Tested-by: Zlatko Calusic <zcalusic@bitsync.net>
Cc: dormando <dormando@rydia.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c