]> 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>
Wed, 19 Jun 2013 00:06:01 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:02 +0000 (17:13 +1000)
commitaf157b6902fc714fc6d7d0fe170b7a529df06421
tree04a3f33301b0b64bf21a69932c3980542a5d4654
parent6f196ee80144e27a5d80a933003b36a6763ce257
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