aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorWanpeng Li <liwp@linux.vnet.ibm.com>2012-07-31 19:43:26 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-31 21:42:44 -0400
commitda92c47d069890106484cb6605df701a54d24499 (patch)
tree374915962f0e8071e27156f2dad39bc408572ff5 /mm/memcontrol.c
parentaaad153e3408a4b8784de4c8446a40e70d57481f (diff)
mm/memcg: replace inexistence move_lock_page_cgroup() by move_lock_mem_cgroup() in comment
Signed-off-by: Wanpeng Li <liwp.linux@gmail.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index ac87e79b00d1..4f73c823c59f 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1898,7 +1898,7 @@ again:
1898 return; 1898 return;
1899 /* 1899 /*
1900 * If this memory cgroup is not under account moving, we don't 1900 * If this memory cgroup is not under account moving, we don't
1901 * need to take move_lock_page_cgroup(). Because we already hold 1901 * need to take move_lock_mem_cgroup(). Because we already hold
1902 * rcu_read_lock(), any calls to move_account will be delayed until 1902 * rcu_read_lock(), any calls to move_account will be delayed until
1903 * rcu_read_unlock() if mem_cgroup_stolen() == true. 1903 * rcu_read_unlock() if mem_cgroup_stolen() == true.
1904 */ 1904 */
@@ -1920,7 +1920,7 @@ void __mem_cgroup_end_update_page_stat(struct page *page, unsigned long *flags)
1920 /* 1920 /*
1921 * It's guaranteed that pc->mem_cgroup never changes while 1921 * It's guaranteed that pc->mem_cgroup never changes while
1922 * lock is held because a routine modifies pc->mem_cgroup 1922 * lock is held because a routine modifies pc->mem_cgroup
1923 * should take move_lock_page_cgroup(). 1923 * should take move_lock_mem_cgroup().
1924 */ 1924 */
1925 move_unlock_mem_cgroup(pc->mem_cgroup, flags); 1925 move_unlock_mem_cgroup(pc->mem_cgroup, flags);
1926} 1926}