Skip to contentSkip to conversation

mm/vmstat: add note on safety of drain_zonestat

PATCH New Cody P Schafer 1 participant 1 message Apr 12, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/vmstat: add note on safety of drain_zonestat

---
 mm/vmstat.c | 4 ++++
 1 file changed, 4 insertions(+)
mm/vmstat.c +4 -0
index e1d8ed1..2b93877 100644
@@ -495,6 +495,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;
Signature · 7 lines
1.8.2.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>