summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@zip.com.au>2002-07-28 03:13:57 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-28 03:13:57 -0700
commitcbb6e8ecaa8ec7e08ee2b0095236fabb87638742 (patch)
tree9ae8f7cb4bb69ad32e315d0908ac83d97e38ef11 /include
parent1a40868e97c4f45b6388593bef1c80b41e0c8845 (diff)
[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."
Diffstat (limited to 'include')
-rw-r--r--include/linux/page-flags.h3
1 files changed, 1 insertions, 2 deletions
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);