aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2012-03-23 15:56:34 -0400
committerMel Gorman <mgorman@suse.de>2012-12-11 09:42:50 -0500
commit8177a420ed7c16c171ed3c3aec5b0676db38c247 (patch)
tree9d188c65d68af5a8f77913043ab8689c5530508b /mm/page_alloc.c
parent9532fec118d485ea37ab6e3ea372d68cd8b4cd0d (diff)
mm: numa: Structures for Migrate On Fault per NUMA migration rate limiting
This defines the per-node data used by Migrate On Fault in order to rate limit the migration. The rate limiting is applied independently to each destination node. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Mel Gorman <mgorman@suse.de>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 5953dc2d196f..ef025e20dbee 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4449,6 +4449,11 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
4449 int ret; 4449 int ret;
4450 4450
4451 pgdat_resize_init(pgdat); 4451 pgdat_resize_init(pgdat);
4452#ifdef CONFIG_NUMA_BALANCING
4453 spin_lock_init(&pgdat->numabalancing_migrate_lock);
4454 pgdat->numabalancing_migrate_nr_pages = 0;
4455 pgdat->numabalancing_migrate_next_window = jiffies;
4456#endif
4452 init_waitqueue_head(&pgdat->kswapd_wait); 4457 init_waitqueue_head(&pgdat->kswapd_wait);
4453 init_waitqueue_head(&pgdat->pfmemalloc_wait); 4458 init_waitqueue_head(&pgdat->pfmemalloc_wait);
4454 pgdat_page_cgroup_init(pgdat); 4459 pgdat_page_cgroup_init(pgdat);