summaryrefslogtreecommitdiff
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorQiang Huang <h.huangqiang@huawei.com>2014-06-05 03:08:22 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-05 03:54:06 +0400
commitb5ffc8560cf758422e85b786cca32cd7e1513a7f (patch)
treef0f7df8283a94d89f7941f6f0460f85d144448f4 /mm/memcontrol.c
parentbdcbb659fe630fc64f6604e99a180bb2ccc630c2 (diff)
downloadlinux-b5ffc8560cf758422e85b786cca32cd7e1513a7f.tar.xz
memcg: correct comments for __mem_cgroup_begin_update_page_stat
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: Johannes Weiner <hannes@cmpxchg.org> 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.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 4a9dfc83643d..971d7b643f6e 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2276,12 +2276,11 @@ cleanup:
}
/*
- * Currently used to update mapped file statistics, but the routine can be
- * generalized to update other statistics as well.
+ * Used to update mapped file or writeback or other statistics.
*
* Notes: Race condition
*
- * We usually use page_cgroup_lock() for accessing page_cgroup member but
+ * We usually use lock_page_cgroup() for accessing page_cgroup member but
* it tends to be costly. But considering some conditions, we doesn't need
* to do so _always_.
*
@@ -2295,8 +2294,8 @@ cleanup:
* by flags.
*
* Considering "move", this is an only case we see a race. To make the race
- * small, we check mm->moving_account and detect there are possibility of race
- * If there is, we take a lock.
+ * small, we check memcg->moving_account and detect there are possibility
+ * of race or not. If there is, we take a lock.
*/
void __mem_cgroup_begin_update_page_stat(struct page *page,