diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-01-25 03:16:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-01-25 03:16:14 -0500 |
commit | 2b45e0f9f34f718725e093f4e335600811d7105a (patch) | |
tree | 3c6d594539eb16fc955906da65b9fa7aacbc9145 /mm | |
parent | a85eba8814631d0d48361c8b9a7ee0984e80c03c (diff) | |
parent | 15c81026204da897a05424c79263aea861a782cc (diff) |
Merge branch 'linus' into x86/urgent
Merge in the x86 changes to apply a fix.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'mm')
-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 | ||