Re: [PATCH] mm, slab: Move memcg_cache_params structure to mm/slab.h

2019-07-20 Thread David Rientjes
On Thu, 18 Jul 2019, Waiman Long wrote: > The memcg_cache_params structure is only embedded into the kmem_cache > of slab and slub allocators as defined in slab_def.h and slub_def.h > and used internally by mm code. There is no needed to expose it in > a public header. So move it from

Re: [PATCH] mm, slab: Move memcg_cache_params structure to mm/slab.h

2019-07-19 Thread Michal Hocko
On Thu 18-07-19 14:08:27, Waiman Long wrote: > The memcg_cache_params structure is only embedded into the kmem_cache > of slab and slub allocators as defined in slab_def.h and slub_def.h > and used internally by mm code. There is no needed to expose it in > a public header. So move it from

[PATCH] mm, slab: Move memcg_cache_params structure to mm/slab.h

2019-07-18 Thread Waiman Long
The memcg_cache_params structure is only embedded into the kmem_cache of slab and slub allocators as defined in slab_def.h and slub_def.h and used internally by mm code. There is no needed to expose it in a public header. So move it from include/linux/slab.h to mm/slab.h. It is just a refactoring