Re: [PATCH v5 09/16] mm: memcontrol: move memcg_online_kmem() to mem_cgroup_css_online()

From: Roman Gushchin
Date: Tue Jan 11 2022 - 14:18:42 EST


On Mon, Dec 20, 2021 at 04:56:42PM +0800, Muchun Song wrote:
> It will simplify the code if moving memcg_online_kmem() to
> mem_cgroup_css_online() and do not need to set ->kmemcg_id
> to -1 to indicate the memcg is offline. In the next patch,
> ->kmemcg_id will be used to sync list lru reparenting which
> requires not to change ->kmemcg_id.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Nice!

Acked-by: Roman Gushchin <guro@xxxxxx>