diff options
author | Cody P Schafer <cody@linux.vnet.ibm.com> | 2013-04-30 00:08:38 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 00:54:38 +0200 |
commit | 40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4 (patch) | |
tree | 5fd9cf78f31ccabefcd1f8de59a559c81976e5e3 /mm/vmstat.c | |
parent | mm: thp: add split tail pages to shrink page list in page reclaim (diff) | |
download | linux-40f4b1ead0e7a31bd1acf9b683f9ddcf52b0dfe4.tar.xz linux-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 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; |