summaryrefslogtreecommitdiffstats
path: root/mm/page_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_io.c')
-rw-r--r--mm/page_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_io.c b/mm/page_io.c
index 3ce1a186c..c5ed3ed74 100644
--- a/mm/page_io.c
+++ b/mm/page_io.c
@@ -136,7 +136,7 @@ void rw_swap_page(int rw, struct page *page, int wait)
PAGE_BUG(page);
if (!PageSwapCache(page))
PAGE_BUG(page);
- if (page->inode != &swapper_inode)
+ if (page->mapping != &swapper_space)
PAGE_BUG(page);
if (!rw_swap_page_base(rw, entry, page, wait))
UnlockPage(page);