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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4;p=linux-beck.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 c823776f7059..f42745e65780 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;