Commit da92c47d authored by Wanpeng Li's avatar Wanpeng Li Committed by Linus Torvalds

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

Signed-off-by: default avatarWanpeng Li <liwp.linux@gmail.com>
Acked-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent aaad153e
...@@ -1898,7 +1898,7 @@ void __mem_cgroup_begin_update_page_stat(struct page *page, ...@@ -1898,7 +1898,7 @@ void __mem_cgroup_begin_update_page_stat(struct page *page,
return; return;
/* /*
* If this memory cgroup is not under account moving, we don't * 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_lock(), any calls to move_account will be delayed until
* rcu_read_unlock() if mem_cgroup_stolen() == true. * rcu_read_unlock() if mem_cgroup_stolen() == true.
*/ */
...@@ -1920,7 +1920,7 @@ void __mem_cgroup_end_update_page_stat(struct page *page, unsigned long *flags) ...@@ -1920,7 +1920,7 @@ void __mem_cgroup_end_update_page_stat(struct page *page, unsigned long *flags)
/* /*
* It's guaranteed that pc->mem_cgroup never changes while * It's guaranteed that pc->mem_cgroup never changes while
* lock is held because a routine modifies pc->mem_cgroup * 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); move_unlock_mem_cgroup(pc->mem_cgroup, flags);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment