Skip to contentSkip to conversation

mm/memcg: replace inexistence move_lock_page_cgroup() by move_lock_mem_cgroup() in comment

PATCH In review Wanpeng Li 2 participants 2 messages Jul 5, 2012 – Jul 9, 2012

Subsystems (2)
lore
Share & tools
lore

Wanpeng Li

author
#0 lore raw

PATCH 1/1 mm/memcg: replace inexistence move_lock_page_cgroup() by move_lock_mem_cgroup() in comment

From: Wanpeng Li <[email protected]>

---
 mm/memcontrol.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
mm/memcontrol.c +2 -2
index 3d318f6..63e36e7 100644
@@ -1899,7 +1899,7 @@ again:
 		return;
 	/*
 	 * If this memory cgroup is not under account moving, we don't
-	 * need to take move_lock_page_cgroup(). Because we already hold
+	 * need to take move_lock_mem_cgroup(). Because we already hold
 	 * rcu_read_lock(), any calls to move_account will be delayed until
 	 * rcu_read_unlock() if mem_cgroup_stolen() == true.
 	 */
@@ -1921,7 +1921,7 @@ void __mem_cgroup_end_update_page_stat(struct page *page, unsigned long *flags)
 	/*
 	 * It's guaranteed that pc->mem_cgroup never changes while
 	 * lock is held because a routine modifies pc->mem_cgroup
-	 * should take move_lock_page_cgroup().
+	 * should take move_lock_mem_cgroup().
 	 */
 	move_unlock_mem_cgroup(pc->mem_cgroup, flags);
 }
Signature · 7 lines
1.7.5.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Wanpeng Li

From: Wanpeng Li <[email protected]>

Quoted 19 lines
---
  mm/memcontrol.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
mm/memcontrol.c +1 -1
index 3d318f6..63e36e7 100644
@@ -1899,7 +1899,7 @@ again:
  		return;
  	/*
  	 * If this memory cgroup is not under account moving, we don't
-	 * need to take move_lock_page_cgroup(). Because we already hold
+	 * need to take move_lock_mem_cgroup(). Because we already hold
  	 * rcu_read_lock(), any calls to move_account will be delayed until
  	 * rcu_read_unlock() if mem_cgroup_stolen() == true.
  	 */

mm/memcontrol.c void __mem_cgroup_end_update_page_stat(struct page *page, unsigned long *flags) · line 1927

Quoted 8 lines
mm/memcontrol.c +1 -1
@@ -1921,7 +1921,7 @@ void __mem_cgroup_end_update_page_stat(struct page *page, unsigned long *flags)
  	/*
  	 * It's guaranteed that pc->mem_cgroup never changes while
  	 * lock is held because a routine modifies pc->mem_cgroup
-	 * should take move_lock_page_cgroup().
+	 * should take move_lock_mem_cgroup().
  	 */
  	move_unlock_mem_cgroup(pc->mem_cgroup, flags);
  }

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>