Re: [RFC][PATCH 4/7] memcg: use css_get/put for swap memcg

2013-04-04 Thread Kamezawa Hiroyuki
(2013/04/03 18:12), Li Zefan wrote: > Use css_get/put instead of mem_cgroup_get/put. > > Signed-off-by: Li Zefan > --- > mm/memcontrol.c | 26 -- > 1 file changed, 16 insertions(+), 10 deletions(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index 877551d..ad5

Re: [RFC][PATCH 4/7] memcg: use css_get/put for swap memcg

2013-04-04 Thread Michal Hocko
On Wed 03-04-13 17:12:54, Li Zefan wrote: > Use css_get/put instead of mem_cgroup_get/put. > > Signed-off-by: Li Zefan Looks good to me. Swapped in pages still use css_tryget so they would fallback to recharge in __mem_cgroup_try_charge_swapin if the group was removed. Acked-by: Michal Hocko

[RFC][PATCH 4/7] memcg: use css_get/put for swap memcg

2013-04-03 Thread Li Zefan
Use css_get/put instead of mem_cgroup_get/put. Signed-off-by: Li Zefan --- mm/memcontrol.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 877551d..ad576e8 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c