vmstat.ws_activate = global_node_page_state(WORKINGSET_ACTIVATE);
vmstat.mapped = global_node_page_state(NR_FILE_MAPPED);
- /* No want to make lock dependency between vmstat_lock and hotplug */
- get_online_cpus();
for_each_online_cpu(cpu) {
struct vm_event_state *this = &per_cpu(vm_event_states, cpu);
vmstat.compact_scan += this->event[COMPACTFREE_SCANNED] +
this->event[COMPACTMIGRATE_SCANNED];
}
- put_online_cpus();
trace_mm_event_vmstat_record(&vmstat);
}