]> git.karo-electronics.de Git - linux-beck.git/blobdiff - mm/vmscan.c
mm: collect LRU list heads into struct lruvec
[linux-beck.git] / mm / vmscan.c
index 024168cfdcb0a6af3390547f4c96a5571ba0d95c..93cdc44a1693c4b4aecc91dbf457530e4bd58361 100644 (file)
@@ -1250,8 +1250,8 @@ static unsigned long isolate_pages_global(unsigned long nr,
                lru += LRU_ACTIVE;
        if (file)
                lru += LRU_FILE;
-       return isolate_lru_pages(nr, &z->lru[lru].list, dst, scanned, order,
-                                                               mode, file);
+       return isolate_lru_pages(nr, &z->lruvec.lists[lru], dst,
+                                scanned, order, mode, file);
 }
 
 /*
@@ -1630,7 +1630,7 @@ static void move_active_pages_to_lru(struct zone *zone,
                VM_BUG_ON(PageLRU(page));
                SetPageLRU(page);
 
-               list_move(&page->lru, &zone->lru[lru].list);
+               list_move(&page->lru, &zone->lruvec.lists[lru]);
                mem_cgroup_add_lru_list(page, lru);
                pgmoved += hpage_nr_pages(page);
 
@@ -3448,7 +3448,7 @@ retry:
                enum lru_list l = page_lru_base_type(page);
 
                __dec_zone_state(zone, NR_UNEVICTABLE);
-               list_move(&page->lru, &zone->lru[l].list);
+               list_move(&page->lru, &zone->lruvec.lists[l]);
                mem_cgroup_move_lists(page, LRU_UNEVICTABLE, l);
                __inc_zone_state(zone, NR_INACTIVE_ANON + l);
                __count_vm_event(UNEVICTABLE_PGRESCUED);
@@ -3457,7 +3457,7 @@ retry:
                 * rotate unevictable list
                 */
                SetPageUnevictable(page);
-               list_move(&page->lru, &zone->lru[LRU_UNEVICTABLE].list);
+               list_move(&page->lru, &zone->lruvec.lists[LRU_UNEVICTABLE]);
                mem_cgroup_rotate_lru_list(page, LRU_UNEVICTABLE);
                if (page_evictable(page, NULL))
                        goto retry;