From: Cody P Schafer Date: Mon, 29 Apr 2013 22:08:38 +0000 (-0700) Subject: mm/vmstat: add note on safety of drain_zonestat X-Git-Tag: upstream/snapshot3+hdmi~5281^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mm/vmstat: add note on safety of drain_zonestat Signed-off-by: Cody P Schafer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmstat.c b/mm/vmstat.c index c823776..f42745e 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -493,6 +493,10 @@ void refresh_cpu_vm_stats(int cpu) atomic_long_add(global_diff[i], &vm_stat[i]); } +/* + * this is only called if !populated_zone(zone), which implies no other users of + * pset->vm_stat_diff[] exsist. + */ void drain_zonestat(struct zone *zone, struct per_cpu_pageset *pset) { int i;