diff options
Diffstat (limited to 'mm/debug.c')
-rw-r--r-- | mm/debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/debug.c b/mm/debug.c index 7d13941a72f9..c0b31b6c3877 100644 --- a/mm/debug.c +++ b/mm/debug.c | |||
@@ -44,7 +44,7 @@ const struct trace_print_flags vmaflag_names[] = { | |||
44 | 44 | ||
45 | void __dump_page(struct page *page, const char *reason) | 45 | void __dump_page(struct page *page, const char *reason) |
46 | { | 46 | { |
47 | struct address_space *mapping = page_mapping(page); | 47 | struct address_space *mapping; |
48 | bool page_poisoned = PagePoisoned(page); | 48 | bool page_poisoned = PagePoisoned(page); |
49 | int mapcount; | 49 | int mapcount; |
50 | 50 | ||
@@ -58,6 +58,8 @@ void __dump_page(struct page *page, const char *reason) | |||
58 | goto hex_only; | 58 | goto hex_only; |
59 | } | 59 | } |
60 | 60 | ||
61 | mapping = page_mapping(page); | ||
62 | |||
61 | /* | 63 | /* |
62 | * Avoid VM_BUG_ON() in page_mapcount(). | 64 | * Avoid VM_BUG_ON() in page_mapcount(). |
63 | * page->_mapcount space in struct page is used by sl[aou]b pages to | 65 | * page->_mapcount space in struct page is used by sl[aou]b pages to |