linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/memcg: update obsolete comment above parent_mem_cgroup()
@ 2023-08-01 12:43 Miaohe Lin
  0 siblings, 0 replies; only message in thread
From: Miaohe Lin @ 2023-08-01 12:43 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, cgroups, linmiaohe

Since commit bef8620cd8e0 ("mm: memcg: deprecate the non-hierarchical
mode"), use_hierarchy is already deprecated. And it's further removed
via commit 9d9d341df4d5 ("cgroup: remove obsoleted broken_hierarchy
and warned_broken_hierarchy"). Update corresponding comment.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 include/linux/memcontrol.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 3bd00f224224..11810a2cfd2d 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -863,8 +863,7 @@ static inline struct mem_cgroup *lruvec_memcg(struct lruvec *lruvec)
  * parent_mem_cgroup - find the accounting parent of a memcg
  * @memcg: memcg whose parent to find
  *
- * Returns the parent memcg, or NULL if this is the root or the memory
- * controller is in legacy no-hierarchy mode.
+ * Returns the parent memcg, or NULL if this is the root.
  */
 static inline struct mem_cgroup *parent_mem_cgroup(struct mem_cgroup *memcg)
 {
-- 
2.33.0



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-01 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01 12:43 [PATCH] mm/memcg: update obsolete comment above parent_mem_cgroup() Miaohe Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox