linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/memcg: fix obsolete comment above MEM_CGROUP_MAX_RECLAIM_LOOPS
@ 2023-07-13 12:14 Miaohe Lin
  2023-07-13 13:16 ` Muchun Song
  0 siblings, 1 reply; 2+ messages in thread
From: Miaohe Lin @ 2023-07-13 12:14 UTC (permalink / raw)
  To: akpm, hannes, mhocko, roman.gushchin, shakeelb
  Cc: muchun.song, linux-mm, cgroups, linux-kernel, linmiaohe

Since commit 5660048ccac8 ("mm: move memcg hierarchy reclaim to generic
reclaim code"), mem_cgroup_hierarchical_reclaim() is already renamed to
mem_cgroup_soft_reclaim(). Update the corresponding comment.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 mm/memcontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 3eaeb69ef9f5..93e3cc581b51 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -197,7 +197,7 @@ static struct move_charge_struct {
 };
 
 /*
- * Maximum loops in mem_cgroup_hierarchical_reclaim(), used for soft
+ * Maximum loops in mem_cgroup_soft_reclaim(), used for soft
  * limit reclaim to prevent infinite loops, if they ever occur.
  */
 #define	MEM_CGROUP_MAX_RECLAIM_LOOPS		100
-- 
2.33.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mm/memcg: fix obsolete comment above MEM_CGROUP_MAX_RECLAIM_LOOPS
  2023-07-13 12:14 [PATCH] mm/memcg: fix obsolete comment above MEM_CGROUP_MAX_RECLAIM_LOOPS Miaohe Lin
@ 2023-07-13 13:16 ` Muchun Song
  0 siblings, 0 replies; 2+ messages in thread
From: Muchun Song @ 2023-07-13 13:16 UTC (permalink / raw)
  To: Miaohe Lin
  Cc: Andrew Morton, Johannes Weiner, Michal Hocko, Roman Gushchin,
	Shakeel Butt, Linux Memory Management List, cgroups, LKML



> On Jul 13, 2023, at 20:14, Miaohe Lin <linmiaohe@huawei.com> wrote:
> 
> Since commit 5660048ccac8 ("mm: move memcg hierarchy reclaim to generic
> reclaim code"), mem_cgroup_hierarchical_reclaim() is already renamed to
> mem_cgroup_soft_reclaim(). Update the corresponding comment.
> 
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>

Reviewed-by: Muchun Song <songmuchun@bytedance.com>

Thanks.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-13 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-13 12:14 [PATCH] mm/memcg: fix obsolete comment above MEM_CGROUP_MAX_RECLAIM_LOOPS Miaohe Lin
2023-07-13 13:16 ` Muchun Song

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