]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/memcg: non-hierarchical mode is deprecated
authorWei Yang <richard.weiyang@gmail.com>
Thu, 14 Apr 2022 06:07:05 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:05 +0000 (23:07 -0700)
commit6a5a993e4e47ab609fd2e3d8d7f0c6e15a09bd29
treec04cccb964bafe5f554af709dc1540e86a6e1b2e
parentd6b0cacb59e49ffe5e1e724a486272598522d3d4
mm/memcg: non-hierarchical mode is deprecated

After commit bef8620cd8e0 ("mm: memcg: deprecate the non-hierarchical
mode"), we won't have a NULL parent except root_mem_cgroup.  And this case
is handled when (memcg == root).

Link: https://lkml.kernel.org/r/20220403020833.26164-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c