]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/memcg: use vm_swappiness from target memory cgroup
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 12 Apr 2012 22:52:09 +0000 (08:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:22 +0000 (13:47 +1000)
commit35362fe58e50f5873318dccb92570277dec8ea51
tree2b0f524de9d73c30c7ff72969d5df59bed5f3d86
parent7d170856020c6ad96ef4b9dbc24635052587f01f
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