mm/vmstat: add note on safety of drain_zonestat
Subsystems (2)
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
@@ -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>