Skip to contentSkip to conversation

mm-memcg-remove-obsolete-memcg_has_children.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: memcg: remove obsolete memcg_has_children()
has been removed from the -mm tree. Its filename was
mm-memcg-remove-obsolete-memcg_has_children.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Lukas Bulwahn <[email protected]>
Subject: mm: memcg: remove obsolete memcg_has_children()

Commit 2ef1bf118c40 ("mm: memcg: deprecate the non-hierarchical mode") removed the only use of memcg_has_children() in mem_cgroup_hierarchy_write() as part of the feature deprecation.

Hence, since then, make CC=clang W=1 warns:

mm/memcontrol.c:3421:20:
warning: unused function 'memcg_has_children' [-Wunused-function]

Simply remove this obsolete unused function.

---

 mm/memcontrol.c |   13 -------------
 1 file changed, 13 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcg-remove-obsolete-memcg_has_children +0 -13
@@ -3454,19 +3454,6 @@ unsigned long mem_cgroup_soft_limit_recl
 }
 
 /*
- * Test whether @memcg has children, dead or alive.
- */
-static inline bool memcg_has_children(struct mem_cgroup *memcg)
-{
-	bool ret;
-
-	rcu_read_lock();
-	ret = css_next_child(NULL, &memcg->css);
-	rcu_read_unlock();
-	return ret;
-}
-
-/*
  * Reclaims as many pages from the given memcg as possible.
  *
  * Caller is responsible for holding css reference for memcg.

_

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