Daisuke Nishimura c0bd3f63ce 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 <nishimura@mxp.nes.nec.co.jp>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-05-02 15:36:09 -07:00
..
2009-04-01 08:59:13 -07:00
2009-04-16 07:47:49 -07:00
2009-04-01 08:59:14 -07:00
2009-04-01 08:59:13 -07:00
2007-10-20 01:27:18 +02:00
2009-04-16 14:41:25 -07:00
2008-07-28 16:30:21 -07:00
2008-06-12 18:05:41 -07:00
2007-10-20 01:27:18 +02:00
2009-02-11 14:25:35 -08:00
2009-04-13 15:04:33 -07:00
2009-01-08 08:31:05 -08:00
2009-04-13 15:04:32 -07:00
2009-04-02 19:04:48 -07:00