diff options
author | Cody P Schafer <cody@linux.vnet.ibm.com> | 2013-04-29 15:08:38 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 15:54:38 -0700 |
commit | 40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4 (patch) | |
tree | 5fd9cf78f31ccabefcd1f8de59a559c81976e5e3 /mm/vmstat.c | |
parent | 5bc7b8aca942d03bf2716ddcfcb4e0b57e43a1b8 (diff) | |
download | linux-3.10-40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4.tar.gz linux-3.10-40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4.tar.bz2 linux-3.10-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index c823776f705..f42745e6578 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; |