Skip to contentSkip to conversation

memcg: fix stale mem_cgroup_force_empty() comment

PATCH Applied Greg Thelen 3 participants 3 messages May 6, 2016 – May 10, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memcg: fix stale mem_cgroup_force_empty() comment

commit f61c42a7d911 ("memcg: remove tasks/children test from mem_cgroup_force_empty()") removed memory reparenting from the function.

Fix the function's comment.

---
 mm/memcontrol.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/memcontrol.c +1 -2
index fe787f5c41bd..19fd76168a05 100644
@@ -2636,8 +2636,7 @@ static inline bool memcg_has_children(struct mem_cgroup *memcg)
 }
 
 /*
- * Reclaims as many pages from the given memcg as possible and moves
- * the rest to the parent.
+ * Reclaims as many pages from the given memcg as possible.
  *
  * Caller is responsible for holding css reference for memcg.
  */
Signature · 1 line
2.8.0.rc3.226.g39d4020
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Greg Thelen
Quoted 6 lines · Greg Thelen

commit f61c42a7d911 ("memcg: remove tasks/children test from mem_cgroup_force_empty()") removed memory reparenting from the function.

Fix the function's comment.

Quoted 20 lines
---
 mm/memcontrol.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/memcontrol.c +1 -2
index fe787f5c41bd..19fd76168a05 100644
@@ -2636,8 +2636,7 @@ static inline bool memcg_has_children(struct mem_cgroup *memcg)
 }
 
 /*
- * Reclaims as many pages from the given memcg as possible and moves
- * the rest to the parent.
+ * Reclaims as many pages from the given memcg as possible.
  *
  * Caller is responsible for holding css reference for memcg.
  */
Signature · 1 line
2.8.0.rc3.226.g39d4020
Signature · 2 lines
Michal Hocko
SUSE Labs