summaryrefslogtreecommitdiffstats
path: root/mm/page_io.c
diff options
context:
space:
mode:
authorDaisuke Nishimura <nishimura@mxp.nes.nec.co.jp>2009-12-16 01:47:10 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 16:20:07 +0100
commita3032a2c15c6967f9f0c0c28375b1a5c833a3112 (patch)
tree32d279856032fd9d84ebd5d6746b2bd382baaac9 /mm/page_io.c
parentmemcg: make memcg's file mapped consistent with global VM (diff)
downloadlinux-a3032a2c15c6967f9f0c0c28375b1a5c833a3112.tar.xz
linux-a3032a2c15c6967f9f0c0c28375b1a5c833a3112.zip
memcg: add mem_cgroup_cancel_charge()
There are some places calling both res_counter_uncharge() and css_put() to cancel the charge and the refcnt we have got by mem_cgroup_tyr_charge(). This patch introduces mem_cgroup_cancel_charge() and call it in those places. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Reviewed-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions