diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-10-16 01:26:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 09:43:01 -0700 |
commit | 8e65d24c7caf2a4c69b3ae0ce170bf3082ba359f (patch) | |
tree | 4f690448c1363bf02f74abd9293126c3e3a9e4c9 /include/linux/mm_types.h | |
parent | dfb4f09609827301740ef0a11b37530d190f1681 (diff) | |
download | kernel_samsung_espresso10-8e65d24c7caf2a4c69b3ae0ce170bf3082ba359f.zip kernel_samsung_espresso10-8e65d24c7caf2a4c69b3ae0ce170bf3082ba359f.tar.gz kernel_samsung_espresso10-8e65d24c7caf2a4c69b3ae0ce170bf3082ba359f.tar.bz2 |
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 'include/linux/mm_types.h')
-rw-r--r-- | include/linux/mm_types.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 145b3d05..0cdc8fb 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -62,13 +62,8 @@ struct page { #if NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS spinlock_t ptl; #endif - struct { /* SLUB uses */ - void **lockless_freelist; - struct kmem_cache *slab; /* Pointer to slab */ - }; - struct { - struct page *first_page; /* Compound pages */ - }; + struct kmem_cache *slab; /* SLUB: Pointer to slab */ + struct page *first_page; /* Compound tail pages */ }; union { pgoff_t index; /* Our offset within mapping. */ |