Re: [PATCH 1/2] mm, memcontrol: Add memcg_iterate_all()

2019-06-28 Thread Michal Hocko
On Thu 27-06-19 17:03:06, Waiman Long wrote: > On 6/27/19 11:07 AM, Michal Hocko wrote: > > On Mon 24-06-19 13:42:18, Waiman Long wrote: > >> Add a memcg_iterate_all() function for iterating all the available > >> memory cgroups and call the given callback function for each of the > >> memory cgruo

Re: [PATCH 1/2] mm, memcontrol: Add memcg_iterate_all()

2019-06-27 Thread Waiman Long
On 6/27/19 11:07 AM, Michal Hocko wrote: > On Mon 24-06-19 13:42:18, Waiman Long wrote: >> Add a memcg_iterate_all() function for iterating all the available >> memory cgroups and call the given callback function for each of the >> memory cgruops. > Why is a trivial wrapper any better than open cod

Re: [PATCH 1/2] mm, memcontrol: Add memcg_iterate_all()

2019-06-27 Thread Michal Hocko
On Mon 24-06-19 13:42:18, Waiman Long wrote: > Add a memcg_iterate_all() function for iterating all the available > memory cgroups and call the given callback function for each of the > memory cgruops. Why is a trivial wrapper any better than open coded usage of the iterator? > Signed-off-by: Wai

[PATCH 1/2] mm, memcontrol: Add memcg_iterate_all()

2019-06-24 Thread Waiman Long
Add a memcg_iterate_all() function for iterating all the available memory cgroups and call the given callback function for each of the memory cgruops. Signed-off-by: Waiman Long --- include/linux/memcontrol.h | 3 +++ mm/memcontrol.c| 13 + 2 files changed, 16 insertions