projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bc7b8a
)
mm/vmstat: add note on safety of drain_zonestat
author
Cody P Schafer
<cody@linux.vnet.ibm.com>
Mon, 29 Apr 2013 22:08:38 +0000
(15:08 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:38 +0000
(15:54 -0700)
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>
mm/vmstat.c
patch
|
blob
|
history
diff --git
a/mm/vmstat.c
b/mm/vmstat.c
index
c823776
..
f42745e
100644
(file)
--- 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;