diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/swap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,7 +53,7 @@ static void __page_cache_release(struct page *page) | |||
53 | spin_lock_irqsave(&zone->lru_lock, flags); | 53 | spin_lock_irqsave(&zone->lru_lock, flags); |
54 | VM_BUG_ON(!PageLRU(page)); | 54 | VM_BUG_ON(!PageLRU(page)); |
55 | __ClearPageLRU(page); | 55 | __ClearPageLRU(page); |
56 | del_page_from_lru(zone, page); | 56 | del_page_from_lru_list(zone, page, page_off_lru(page)); |
57 | spin_unlock_irqrestore(&zone->lru_lock, flags); | 57 | spin_unlock_irqrestore(&zone->lru_lock, flags); |
58 | } | 58 | } |
59 | } | 59 | } |
@@ -617,7 +617,7 @@ void release_pages(struct page **pages, int nr, int cold) | |||
617 | } | 617 | } |
618 | VM_BUG_ON(!PageLRU(page)); | 618 | VM_BUG_ON(!PageLRU(page)); |
619 | __ClearPageLRU(page); | 619 | __ClearPageLRU(page); |
620 | del_page_from_lru(zone, page); | 620 | del_page_from_lru_list(zone, page, page_off_lru(page)); |
621 | } | 621 | } |
622 | 622 | ||
623 | list_add(&page->lru, &pages_to_free); | 623 | list_add(&page->lru, &pages_to_free); |