]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/list_lru: code clean up for reparenting
authorKairui Song <kasong@tencent.com>
Mon, 4 Nov 2024 17:52:54 +0000 (01:52 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 12 Nov 2024 01:22:25 +0000 (17:22 -0800)
commit8d42abbfa4efe5fced63c0157d55f30347d7802c
treedbdabc1736455b2eaee39052cb97d9f3a7fcdcc9
parent78c0ed09131b772f062b986a2fcca6600daa6285
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/20241104175257.60853-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 (Oracle) <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