]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/vmstat.c
mm/vmstat: add note on safety of drain_zonestat
[karo-tx-linux.git] / mm / vmstat.c
index c823776f7059c5c57c6b6c9c42af1763da202a56..f42745e65780b97a1875cde1df81fe527350d59a 100644 (file)
@@ -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;