Re: [PATCH 4/9] slab: reorganize memcg_cache_params

Vladimir Davydov
2017-01-14T13:30:00Z

On Sat, Jan 14, 2017 at 12:54:44AM -0500, Tejun Heo wrote:
> We're gonna change how memcg caches are iterated. In preparation,
> clean up and reorganize memcg_cache_params.
>
> * The shared ->list is replaced by ->children in root and
> ->children_node in children.
>
> * ->is_root_cache is removed. Instead ->root_cache is moved out of
> the child union and now used by both root and children. NULL
> indicates root cache. Non-NULL a memcg one.
>
> This patch doesn't cause any observable behavior changes.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
> Cc: Christoph Lameter <cl@linux.com>
> Cc: Pekka Enberg <penberg@kernel.org>
> Cc: David Rientjes <rientjes@google.com>
> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>

Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com>