From: Christoph Lameter If we do not use the mapping anymore then we can also avoid the CONFIG_SLUB in page_mapping(). Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton --- include/linux/mm.h | 4 ---- 1 file changed, 4 deletions(-) diff -puN include/linux/mm.h~slub-do-not-use-page-mapping-fix include/linux/mm.h --- a/include/linux/mm.h~slub-do-not-use-page-mapping-fix +++ a/include/linux/mm.h @@ -569,10 +569,6 @@ static inline struct address_space *page VM_BUG_ON(PageSlab(page)); if (unlikely(PageSwapCache(page))) mapping = &swapper_space; -#ifdef CONFIG_SLUB - else if (unlikely(PageSlab(page))) - mapping = NULL; -#endif else if (unlikely((unsigned long)mapping & PAGE_MAPPING_ANON)) mapping = NULL; return mapping; _