Re: [PATCH] mm: memcontrol: remove the kmem states

From: Roman Gushchin
Date: Mon Oct 25 2021 - 13:20:45 EST


On Mon, Oct 25, 2021 at 08:52:59PM +0800, Muchun Song wrote:
> Now the kmem states is only used to indicate whether the kmem is
> offline. However, we can set ->kmemcg_id to -1 to indicate whether
> the kmem is offline. Finally, we can remove the kmem states to
> simplify the code.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Acked-by: Roman Gushchin <guro@xxxxxx>

Nice! These states made the code more complex without a good reason.

Thanks!