]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/list_lru: code clean up for reparenting
authorKairui Song <kasong@tencent.com>
Wed, 25 Sep 2024 17:10:17 +0000 (01:10 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:28:46 +0000 (21:28 -0700)
commitc948e4bd41798e32143575280c46292e396d1d14
treed3dc266c57bc8e3625b8ce321320ca55168a5268
parented71faa20c23940fc4cac8d2118d04d51679853e
mm/list_lru: code clean up for reparenting

No feature change, just change of code structure and fix comment.

The list lrus are not empty until memcg_reparent_list_lru_node() calls are
all done, so the comments in memcg_offline_kmem were slightly inaccurate.

Link: https://lkml.kernel.org/r/20240925171020.32142-4-ryncsn@gmail.com
Signed-off-by: Kairui Song <kasong@tencent.com>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Chengming Zhou <zhouchengming@bytedance.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Qi Zheng <zhengqi.arch@bytedance.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Waiman Long <longman@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/list_lru.c
mm/memcontrol.c