diff options
-rw-r--r-- | include/linux/mm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index e4183c6c7de3..1c1207472bb4 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -603,6 +603,10 @@ static inline struct address_space *page_mapping(struct page *page) | |||
603 | 603 | ||
604 | if (unlikely(PageSwapCache(page))) | 604 | if (unlikely(PageSwapCache(page))) |
605 | mapping = &swapper_space; | 605 | mapping = &swapper_space; |
606 | #ifdef CONFIG_SLUB | ||
607 | else if (unlikely(PageSlab(page))) | ||
608 | mapping = NULL; | ||
609 | #endif | ||
606 | else if (unlikely((unsigned long)mapping & PAGE_MAPPING_ANON)) | 610 | else if (unlikely((unsigned long)mapping & PAGE_MAPPING_ANON)) |
607 | mapping = NULL; | 611 | mapping = NULL; |
608 | return mapping; | 612 | return mapping; |