Re: [PATCH -mmotm 1/3] memcg: add mem_cgroup_cancel_charge()

Balbir Singh
2009-11-11T04:25:50Z

* nishimura@mxp.nes.nec.co.jp <nishimura@mxp.nes.nec.co.jp> [2009-11-11 10:36:49]:

> 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>

--
Balbir