diff mbox series

mm/memcg: fix obsolete comment above MEM_CGROUP_MAX_RECLAIM_LOOPS

Message ID 20230713121432.273381-1-linmiaohe@huawei.com (mailing list archive)
State New
Headers show
Series mm/memcg: fix obsolete comment above MEM_CGROUP_MAX_RECLAIM_LOOPS | expand

Commit Message

Miaohe Lin July 13, 2023, 12:14 p.m. UTC
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(-)

Comments

Muchun Song July 13, 2023, 1:16 p.m. UTC | #1
> 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.
diff mbox series

Patch

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