diff options
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -390,7 +390,10 @@ struct address_space *page_mapping(struct page *page) | |||
390 | { | 390 | { |
391 | struct address_space *mapping = page->mapping; | 391 | struct address_space *mapping = page->mapping; |
392 | 392 | ||
393 | VM_BUG_ON(PageSlab(page)); | 393 | /* This happens if someone calls flush_dcache_page on slab page */ |
394 | if (unlikely(PageSlab(page))) | ||
395 | return NULL; | ||
396 | |||
394 | if (unlikely(PageSwapCache(page))) { | 397 | if (unlikely(PageSwapCache(page))) { |
395 | swp_entry_t entry; | 398 | swp_entry_t entry; |
396 | 399 | ||