Skip to contentSkip to conversation

mm-memcg-non-hierarchical-mode-is-deprecated.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message May 10, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/memcg: non-hierarchical mode is deprecated
has been removed from the -mm tree. Its filename was
mm-memcg-non-hierarchical-mode-is-deprecated.patch

This patch was dropped because it was merged into mm-stable

------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: 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).

---

 mm/memcontrol.c |    3 ---
 1 file changed, 3 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcg-non-hierarchical-mode-is-deprecated +0 -3
@@ -6587,9 +6587,6 @@ void mem_cgroup_calculate_protection(str
 		return;
 
 	parent = parent_mem_cgroup(memcg);
-	/* No parent means a non-hierarchical mode on v1 memcg */
-	if (!parent)
-		return;
 
 	if (parent == root) {
 		memcg->memory.emin = READ_ONCE(memcg->memory.min);

_

Patches currently in -mm which might be from [email protected] are

mm-vmscan-not-necessary-to-re-init-the-list-for-each-iteration.patch mm-vmscan-filter-empty-page_list-at-the-beginning.patch mm-vmscan-not-use-numa_no_node-as-indicator-of-page-on-different-node.patch