summaryrefslogtreecommitdiff
path: root/mm/vmstat.c
diff options
context:
space:
mode:
authorCody P Schafer <cody@linux.vnet.ibm.com>2013-04-29 15:08:38 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 15:54:38 -0700
commit40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4 (patch)
tree5fd9cf78f31ccabefcd1f8de59a559c81976e5e3 /mm/vmstat.c
parent5bc7b8aca942d03bf2716ddcfcb4e0b57e43a1b8 (diff)
downloadlwn-40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4.tar.gz
lwn-40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4.zip
mm/vmstat: add note on safety of drain_zonestat
Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r--mm/vmstat.c4
1 files changed, 4 insertions, 0 deletions
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;