]> Git Repo - linux.git/commit
memcg: fix try_get_mem_cgroup_from_swapcache()
authorDaisuke Nishimura <[email protected]>
Thu, 30 Apr 2009 22:08:11 +0000 (15:08 -0700)
committerLinus Torvalds <[email protected]>
Sat, 2 May 2009 22:36:09 +0000 (15:36 -0700)
commitc0bd3f63ce01a1757dbce6373122a05fbf99ced7
tree4034e701106d1ed819441f4f32a04dfa020398ae
parent1e50cc9022d6c0b9175d804573e3f401d00d1381
memcg: fix try_get_mem_cgroup_from_swapcache()

This is a bugfix for commit 3c776e64660028236313f0e54f3a9945764422df
("memcg: charge swapcache to proper memcg").

Used bit of swapcache is solid under page lock, but considering
move_account, pc->mem_cgroup is not.

We need lock_page_cgroup() anyway.

Signed-off-by: Daisuke Nishimura <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Balbir Singh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c
This page took 0.050301 seconds and 4 git commands to generate.