From cbb6e8ecaa8ec7e08ee2b0095236fabb87638742 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 28 Jul 2002 03:13:57 -0700 Subject: [PATCH] use a slab cache for pte_chains Patch from Bill Irwin. It removes the custom pte_chain allocator in mm/rmap.c and replaces it with a slab cache. "This patch (1) eliminates the pte_chain_freelist_lock and all contention on it (2) gives the VM the ability to recover unused pte_chain pages Anton Blanchard has reported (1) from prior incarnations of this patch. Craig Kulesa has reported (2) in combination with slab-on-LRU patches. I've left OOM detection out of this patch entirely as upcoming patches will do real OOM handling for pte_chains and all the code changed anyway." --- include/linux/page-flags.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index d8e4c7779d05..1b2458455afa 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -79,8 +79,7 @@ extern struct page_state { unsigned long nr_active; /* on active_list LRU */ unsigned long nr_inactive; /* on inactive_list LRU */ unsigned long nr_page_table_pages; - unsigned long nr_pte_chain_pages; - unsigned long used_pte_chains_bytes; + unsigned long nr_reverse_maps; } ____cacheline_aligned_in_smp page_states[NR_CPUS]; extern void get_page_state(struct page_state *ret); -- cgit v1.2.3