diff options
author | Konstantin Khlebnikov <khlebnikov@openvz.org> | 2012-05-30 00:06:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-30 01:22:26 +0200 |
commit | 9e3b2f8cd340e13353a44c9a34caef2848131ed7 (patch) | |
tree | cda727e0e4f87992826075ea75c8519bf8e78034 /mm/percpu.c | |
parent | mm/memcg: use vm_swappiness from target memory cgroup (diff) | |
download | linux-9e3b2f8cd340e13353a44c9a34caef2848131ed7.tar.xz linux-9e3b2f8cd340e13353a44c9a34caef2848131ed7.zip |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/percpu.c')
0 files changed, 0 insertions, 0 deletions