lkml.org 
[lkml]   [2022]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 01/11] mm: memcontrol: remove dead code and comments
On Mon, May 30, 2022 at 03:49:09PM +0800, Muchun Song wrote:
> Since no-hierarchy mode is deprecated after
>
> commit bef8620cd8e0 ("mm: memcg: deprecate the non-hierarchical mode")
>
> so parent_mem_cgroup() cannot return a NULL except root memcg, however, root
> memcg cannot be offline, so it is safe to drop the check of returned value
> of parent_mem_cgroup(). Remove those dead code.
>
> The comments in memcg_offline_kmem() above memcg_reparent_list_lrus() are
> out of date since
>
> commit 5abc1e37afa0 ("mm: list_lru: allocate list_lru_one only when needed")
>
> There is no ordering requirement between memcg_reparent_list_lrus() and
> memcg_reparent_objcgs(), so remove those outdated comments.
>
> Signed-off-by: Muchun Song <songmuchun@bytedance.com>

Acked-by: Roman Gushchin <roman.gushchin@linux.dev>

Nice cleanup!

\
 
 \ /
  Last update: 2022-06-11 01:02    [W:0.271 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site