mm-memcontrol-refactor-memcg_reparent_objcgs.patch removed from -mm tree
The quilt patch titled
Subject: mm: memcontrol: refactor memcg_reparent_objcgs()
has been removed from the -mm tree. Its filename was
mm-memcontrol-refactor-memcg_reparent_objcgs.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Qi Zheng <[email protected]>
Subject: mm: memcontrol: refactor memcg_reparent_objcgs()
Date: Thu, 5 Mar 2026 19:52:45 +0800
Refactor the memcg_reparent_objcgs() to facilitate subsequent reparenting LRU folios here.
Link https://lore.kernel.org/2e5696db1993e593a51004c1dacedbc261689629.1772711148.git.zhengqi.arch@bytedance.com open here
Signed-off-by Qi Zheng <[email protected]>
Acked-by Johannes Weiner <[email protected]>
Acked-by Shakeel Butt <[email protected]>
Reviewed-by Harry Yoo <[email protected]>
Reviewed-by Muchun Song <[email protected]>
Cc Allen Pais <[email protected]>
Cc Axel Rasmussen <[email protected]>
Cc Baoquan He <[email protected]>
Cc Chengming Zhou <[email protected]>
Cc Chen Ridong <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Hamza Mahfooz <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Imran Khan <[email protected]>
Cc Kamalesh Babulal <[email protected]>
Cc Lance Yang <[email protected]>
Cc Liam Howlett <[email protected]>
Cc Lorenzo Stoakes (Oracle) <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Michal Koutný <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Muchun Song <[email protected]>
Cc Nhat Pham <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Usama Arif <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Wei Xu <[email protected]>
Cc Yosry Ahmed <[email protected]>
Cc Yuanchu Xie <[email protected]>
Cc Zi Yan <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/memcontrol.c | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcontrol-refactor-memcg_reparent_objcgs +24 -5
@@ -208,15 +208,12 @@ static struct obj_cgroup *obj_cgroup_allreturn objcg; } -static void memcg_reparent_objcgs (struct mem_cgroup *memcg) +static inline struct obj_cgroup *__memcg_reparent_objcgs (struct mem_cgroup *memcg, +struct mem_cgroup *parent) {struct obj_cgroup *objcg, *iter; -struct mem_cgroup *parent =parent_mem_cgroup (memcg); objcg =rcu_replace_pointer (memcg->objcg,NULL , true); - -spin_lock_irq (&objcg_lock); -/* 1) Ready to reparent active objcg. */ list_add (&objcg->list, &memcg->objcg_list);/* 2) Reparent active objcg and already reparented objcgs to parent. */
@@ -225,7 +222,29 @@ static void memcg_reparent_objcgs(struct/* 3) Move already reparented objcgs to the parent's list */ list_splice (&memcg->objcg_list, &parent->objcg_list); +return objcg; +} + +static inline void reparent_locks (struct mem_cgroup *memcg,struct mem_cgroup *parent) +{ +spin_lock_irq (&objcg_lock); +} + +static inline void reparent_unlocks (struct mem_cgroup *memcg,struct mem_cgroup *parent) +{spin_unlock_irq (&objcg_lock); +} + +static void memcg_reparent_objcgs (struct mem_cgroup *memcg) +{ +struct obj_cgroup *objcg; +struct mem_cgroup *parent =parent_mem_cgroup (memcg); + +reparent_locks (memcg, parent); + + objcg =__memcg_reparent_objcgs (memcg, parent); + +reparent_unlocks (memcg, parent);percpu_ref_kill (&objcg->refcnt); }
_
Patches currently in -mm which might be from [email protected] are