diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-10-16 04:26:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:01 -0400 |
commit | 8e65d24c7caf2a4c69b3ae0ce170bf3082ba359f (patch) | |
tree | 4f690448c1363bf02f74abd9293126c3e3a9e4c9 /mm/slub.c | |
parent | dfb4f09609827301740ef0a11b37530d190f1681 (diff) |
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/slub.c')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1127,7 +1127,6 @@ static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node) | |||
1127 | set_freepointer(s, last, NULL); | 1127 | set_freepointer(s, last, NULL); |
1128 | 1128 | ||
1129 | page->freelist = start; | 1129 | page->freelist = start; |
1130 | page->lockless_freelist = NULL; | ||
1131 | page->inuse = 0; | 1130 | page->inuse = 0; |
1132 | out: | 1131 | out: |
1133 | if (flags & __GFP_WAIT) | 1132 | if (flags & __GFP_WAIT) |
@@ -1153,7 +1152,6 @@ static void __free_slab(struct kmem_cache *s, struct page *page) | |||
1153 | NR_SLAB_RECLAIMABLE : NR_SLAB_UNRECLAIMABLE, | 1152 | NR_SLAB_RECLAIMABLE : NR_SLAB_UNRECLAIMABLE, |
1154 | - pages); | 1153 | - pages); |
1155 | 1154 | ||
1156 | page->mapping = NULL; | ||
1157 | __free_pages(page, s->order); | 1155 | __free_pages(page, s->order); |
1158 | } | 1156 | } |
1159 | 1157 | ||