Lines Matching refs:lru
25 add_page_to_lru_list(struct zone *zone, struct page *page, enum lru_list lru) in add_page_to_lru_list() argument
29 lruvec = mem_cgroup_lru_add_list(zone, page, lru); in add_page_to_lru_list()
30 list_add(&page->lru, &lruvec->lists[lru]); in add_page_to_lru_list()
31 __mod_zone_page_state(zone, NR_LRU_BASE + lru, hpage_nr_pages(page)); in add_page_to_lru_list()
35 del_page_from_lru_list(struct zone *zone, struct page *page, enum lru_list lru) in del_page_from_lru_list() argument
37 mem_cgroup_lru_del_list(page, lru); in del_page_from_lru_list()
38 list_del(&page->lru); in del_page_from_lru_list()
39 __mod_zone_page_state(zone, NR_LRU_BASE + lru, -hpage_nr_pages(page)); in del_page_from_lru_list()
66 enum lru_list lru; in page_off_lru() local
70 lru = LRU_UNEVICTABLE; in page_off_lru()
72 lru = page_lru_base_type(page); in page_off_lru()
75 lru += LRU_ACTIVE; in page_off_lru()
78 return lru; in page_off_lru()
90 enum lru_list lru; in page_lru() local
93 lru = LRU_UNEVICTABLE; in page_lru()
95 lru = page_lru_base_type(page); in page_lru()
97 lru += LRU_ACTIVE; in page_lru()
99 return lru; in page_lru()