Re: [PATCH v2] memcg: add mem_cgroup_from_css() helper

2012-07-22 Thread Wanpeng Li
On Mon, Jul 23, 2012 at 10:08:56AM +0800, Gavin Shan wrote: > >For this case, we usually fix the build error on top of linux-next. >It seems that you're changing the original patch and send again, which >isn't reasonable, man :-) OK, I will send a patch just fix build error against linux-next. Re

[PATCH v2] memcg: add mem_cgroup_from_css() helper

2012-07-22 Thread Wanpeng Li
Changelog v2: * fix too many args to mem_cgroup_from_css() (spotted by Kirill A. Shutemov) * fix kernel build failed (spotted by Fengguang) Add a mem_cgroup_from_css() helper to replace open-coded invokations of container_of(). To clarify the code and to add a little more type safety. Acked-by: