]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/vmscan: store "priority" in struct scan_control
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 3 May 2012 05:44:01 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:36 +0000 (15:46 +1000)
commitcfe08accdd837b06a6ddaee426d3fec59af32ac5
tree9945f7b455c9afc83c7953f4fddfcfda6c3ec6e0
parent632558838f55d9e5489e6d7e21a94d50c0c8079f
mm/vmscan: store "priority" in struct scan_control

In memory reclaim some function have too many arguments - "priority" is
one of them.  It can be stored in struct scan_control - we construct them
on the same level.  Instead of an open coded loop we set the initial
sc.priority, and do_try_to_free_pages() decreases it down to zero.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c