Daisuke Nishimura 83aae4c737 memcg: cleanup cache_charge
Current mem_cgroup_cache_charge is a bit complicated especially
in the case of shmem's swap-in.

This patch cleans it up by using try_charge_swapin and commit_charge_swapin.

Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-04-02 19:04:56 -07:00
..
2009-04-01 08:59:13 -07:00
2008-12-29 11:27:46 +02:00
2009-04-01 08:59:14 -07:00
2009-04-01 08:59:13 -07:00
2009-04-02 19:04:56 -07:00
2007-10-20 01:27:18 +02: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-01 08:59:15 -07:00
2009-01-08 08:31:05 -08:00
2009-04-01 08:59:13 -07:00
2009-04-01 08:59:13 -07:00
2009-04-02 19:04:48 -07:00