From 40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Mon, 29 Apr 2013 15:08:38 -0700 Subject: [PATCH] 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 --- mm/vmstat.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2