aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/swap.c4
-rw-r--r--mm/vmscan.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/mm/swap.c b/mm/swap.c
index cb29ae5d33ab..168d53e6e58e 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -118,7 +118,7 @@ static void pagevec_move_tail(struct pagevec *pvec)
118 spin_lock(&zone->lru_lock); 118 spin_lock(&zone->lru_lock);
119 } 119 }
120 if (PageLRU(page) && !PageActive(page) && !PageUnevictable(page)) { 120 if (PageLRU(page) && !PageActive(page) && !PageUnevictable(page)) {
121 int lru = page_is_file_cache(page); 121 int lru = page_lru_base_type(page);
122 list_move_tail(&page->lru, &zone->lru[lru].list); 122 list_move_tail(&page->lru, &zone->lru[lru].list);
123 pgmoved++; 123 pgmoved++;
124 } 124 }
@@ -181,7 +181,7 @@ void activate_page(struct page *page)
181 spin_lock_irq(&zone->lru_lock); 181 spin_lock_irq(&zone->lru_lock);
182 if (PageLRU(page) && !PageActive(page) && !PageUnevictable(page)) { 182 if (PageLRU(page) && !PageActive(page) && !PageUnevictable(page)) {
183 int file = page_is_file_cache(page); 183 int file = page_is_file_cache(page);
184 int lru = LRU_BASE + file; 184 int lru = page_lru_base_type(page);
185 del_page_from_lru_list(zone, page, lru); 185 del_page_from_lru_list(zone, page, lru);
186 186
187 SetPageActive(page); 187 SetPageActive(page);
diff --git a/mm/vmscan.c b/mm/vmscan.c
index cad5d528a6f0..30e56ee833f8 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -531,7 +531,7 @@ redo:
531 * unevictable page on [in]active list. 531 * unevictable page on [in]active list.
532 * We know how to handle that. 532 * We know how to handle that.
533 */ 533 */
534 lru = active + page_is_file_cache(page); 534 lru = active + page_lru_base_type(page);
535 lru_cache_add_lru(page, lru); 535 lru_cache_add_lru(page, lru);
536 } else { 536 } else {
537 /* 537 /*
@@ -986,7 +986,7 @@ static unsigned long clear_active_flags(struct list_head *page_list,
986 struct page *page; 986 struct page *page;
987 987
988 list_for_each_entry(page, page_list, lru) { 988 list_for_each_entry(page, page_list, lru) {
989 lru = page_is_file_cache(page); 989 lru = page_lru_base_type(page);
990 if (PageActive(page)) { 990 if (PageActive(page)) {
991 lru += LRU_ACTIVE; 991 lru += LRU_ACTIVE;
992 ClearPageActive(page); 992 ClearPageActive(page);
@@ -2652,7 +2652,7 @@ static void check_move_unevictable_page(struct page *page, struct zone *zone)
2652retry: 2652retry:
2653 ClearPageUnevictable(page); 2653 ClearPageUnevictable(page);
2654 if (page_evictable(page, NULL)) { 2654 if (page_evictable(page, NULL)) {
2655 enum lru_list l = LRU_INACTIVE_ANON + page_is_file_cache(page); 2655 enum lru_list l = page_lru_base_type(page);
2656 2656
2657 __dec_zone_state(zone, NR_UNEVICTABLE); 2657 __dec_zone_state(zone, NR_UNEVICTABLE);
2658 list_move(&page->lru, &zone->lru[l].list); 2658 list_move(&page->lru, &zone->lru[l].list);