aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/mm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 4c482a3ee870..a5c451816fdc 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -599,6 +599,7 @@ static inline struct address_space *page_mapping(struct page *page)
599{ 599{
600 struct address_space *mapping = page->mapping; 600 struct address_space *mapping = page->mapping;
601 601
602 VM_BUG_ON(PageSlab(page));
602 if (unlikely(PageSwapCache(page))) 603 if (unlikely(PageSwapCache(page)))
603 mapping = &swapper_space; 604 mapping = &swapper_space;
604#ifdef CONFIG_SLUB 605#ifdef CONFIG_SLUB