diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 41d1064aabfb..135bf8ca96ee 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -521,7 +521,7 @@ static int shrink_list(struct list_head *page_list, struct scan_control *sc) | |||
521 | 521 | ||
522 | #ifdef CONFIG_SWAP | 522 | #ifdef CONFIG_SWAP |
523 | if (PageSwapCache(page)) { | 523 | if (PageSwapCache(page)) { |
524 | swp_entry_t swap = { .val = page->private }; | 524 | swp_entry_t swap = { .val = page_private(page) }; |
525 | __delete_from_swap_cache(page); | 525 | __delete_from_swap_cache(page); |
526 | write_unlock_irq(&mapping->tree_lock); | 526 | write_unlock_irq(&mapping->tree_lock); |
527 | swap_free(swap); | 527 | swap_free(swap); |