From db7b0c9fcd4e93c07f16a0bfd449b49210fa523d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 29 Sep 2002 02:20:34 -0700 Subject: [PATCH] per-node kswapd instances Patch from David Hansen. Start one kswapd instance for each NUMA node. That kswapd instance only works against the pages which are local to that node. We need to bind that kswapd to that node's CPU set, but the infrastructure for this is not yet in place. --- include/linux/mmzone.h | 1 + include/linux/swap.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 0b14f37ca016..fc439380cb0e 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -168,6 +168,7 @@ typedef struct pglist_data { unsigned long node_size; int node_id; struct pglist_data *pgdat_next; + wait_queue_head_t kswapd_wait; } pg_data_t; extern int numnodes; diff --git a/include/linux/swap.h b/include/linux/swap.h index 8844b1408788..f4acbd1e9b46 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -162,7 +162,6 @@ extern void FASTCALL(activate_page(struct page *)); extern void swap_setup(void); /* linux/mm/vmscan.c */ -extern wait_queue_head_t kswapd_wait; extern int try_to_free_pages(struct zone *, unsigned int, unsigned int); /* linux/mm/page_io.c */ -- cgit v1.2.3