aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2007-10-16 04:26:06 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:01 -0400
commit8e65d24c7caf2a4c69b3ae0ce170bf3082ba359f (patch)
tree4f690448c1363bf02f74abd9293126c3e3a9e4c9 /include/linux/mm.h
parentdfb4f09609827301740ef0a11b37530d190f1681 (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 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 6a68d41444f8..292c68623759 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -568,10 +568,6 @@ static inline struct address_space *page_mapping(struct page *page)
568 VM_BUG_ON(PageSlab(page)); 568 VM_BUG_ON(PageSlab(page));
569 if (unlikely(PageSwapCache(page))) 569 if (unlikely(PageSwapCache(page)))
570 mapping = &swapper_space; 570 mapping = &swapper_space;
571#ifdef CONFIG_SLUB
572 else if (unlikely(PageSlab(page)))
573 mapping = NULL;
574#endif
575 else if (unlikely((unsigned long)mapping & PAGE_MAPPING_ANON)) 571 else if (unlikely((unsigned long)mapping & PAGE_MAPPING_ANON))
576 mapping = NULL; 572 mapping = NULL;
577 return mapping; 573 return mapping;