summaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r--mm/vmstat.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index d585de27e960..f1a73bfb77b5 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -570,35 +570,6 @@ void drain_zonestat(struct zone *zone, struct per_cpu_pageset *pset)
570 570
571#ifdef CONFIG_NUMA 571#ifdef CONFIG_NUMA
572/* 572/*
573 * zonelist = the list of zones passed to the allocator
574 * z = the zone from which the allocation occurred.
575 *
576 * Must be called with interrupts disabled.
577 *
578 * When __GFP_OTHER_NODE is set assume the node of the preferred
579 * zone is the local node. This is useful for daemons who allocate
580 * memory on behalf of other processes.
581 */
582void zone_statistics(struct zone *preferred_zone, struct zone *z, gfp_t flags)
583{
584 int local_nid = numa_node_id();
585 enum zone_stat_item local_stat = NUMA_LOCAL;
586
587 if (unlikely(flags & __GFP_OTHER_NODE)) {
588 local_stat = NUMA_OTHER;
589 local_nid = preferred_zone->node;
590 }
591
592 if (z->node == local_nid) {
593 __inc_zone_state(z, NUMA_HIT);
594 __inc_zone_state(z, local_stat);
595 } else {
596 __inc_zone_state(z, NUMA_MISS);
597 __inc_zone_state(preferred_zone, NUMA_FOREIGN);
598 }
599}
600
601/*
602 * Determine the per node value of a stat item. 573 * Determine the per node value of a stat item.
603 */ 574 */
604unsigned long node_page_state(int node, enum zone_stat_item item) 575unsigned long node_page_state(int node, enum zone_stat_item item)