diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-10-16 10:26:06 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 18:43:01 +0200 |
commit | 8e65d24c7caf2a4c69b3ae0ce170bf3082ba359f (patch) | |
tree | 4f690448c1363bf02f74abd9293126c3e3a9e4c9 /mm | |
parent | SLUB: Avoid page struct cacheline bouncing due to remote frees to cpu slab (diff) | |
download | linux-8e65d24c7caf2a4c69b3ae0ce170bf3082ba359f.tar.xz linux-8e65d24c7caf2a4c69b3ae0ce170bf3082ba359f.zip |
SLUB: Do not use page->mapping
After moving the lockless_freelist to kmem_cache_cpu we no longer need
page->lockless_freelist. Restructure the use of the struct page fields in
such a way that we never touch the mapping field.
This is turn allows us to remove the special casing of SLUB when determining
the mapping of a page (needed for corner cases of virtual caches machines that
need to flush caches of processors mapping a page).
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c index 4b8037f14fce..aa8bb072651b 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1127,7 +1127,6 @@ static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node) set_freepointer(s, last, NULL); page->freelist = start; - page->lockless_freelist = NULL; page->inuse = 0; out: if (flags & __GFP_WAIT) @@ -1153,7 +1152,6 @@ static void __free_slab(struct kmem_cache *s, struct page *page) NR_SLAB_RECLAIMABLE : NR_SLAB_UNRECLAIMABLE, - pages); - page->mapping = NULL; __free_pages(page, s->order); } |