diff options
author | Cody P Schafer <cody@linux.vnet.ibm.com> | 2013-04-29 18:08:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 18:54:38 -0400 |
commit | 40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4 (patch) | |
tree | 5fd9cf78f31ccabefcd1f8de59a559c81976e5e3 /mm/vmstat.c | |
parent | 5bc7b8aca942d03bf2716ddcfcb4e0b57e43a1b8 (diff) |
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 c823776f7059..f42745e65780 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -493,6 +493,10 @@ void refresh_cpu_vm_stats(int cpu) | |||
493 | atomic_long_add(global_diff[i], &vm_stat[i]); | 493 | atomic_long_add(global_diff[i], &vm_stat[i]); |
494 | } | 494 | } |
495 | 495 | ||
496 | /* | ||
497 | * this is only called if !populated_zone(zone), which implies no other users of | ||
498 | * pset->vm_stat_diff[] exsist. | ||
499 | */ | ||
496 | void drain_zonestat(struct zone *zone, struct per_cpu_pageset *pset) | 500 | void drain_zonestat(struct zone *zone, struct per_cpu_pageset *pset) |
497 | { | 501 | { |
498 | int i; | 502 | int i; |