]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/memcg: use vm_swappiness from target memory cgroup
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Wed, 25 Apr 2012 01:03:47 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:26 +0000 (15:17 +1000)
commit285225e8293c8e81ce211970cac5b2e1689640f5
tree8eba1f9105b47a0ec41d53a4ce337875fbb9c7eb
parentfad0d02498d8a44f8ba7124d21620621a739e319
mm/memcg: use vm_swappiness from target memory cgroup

Use vm_swappiness from memory cgroup which is triggered this memory
reclaim.  This is more reasonable and allows to kill one argument.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujtisu.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Glauber Costa <glommer@parallels.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c