Lines Matching refs:lru
29 enum lru_list lru, enum zone_type zid, in __update_lru_size() argument
37 __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); in __update_lru_size()
39 NR_ZONE_LRU_BASE + lru, nr_pages); in __update_lru_size()
43 enum lru_list lru, enum zone_type zid, in update_lru_size() argument
46 __update_lru_size(lruvec, lru, zid, nr_pages); in update_lru_size()
48 mem_cgroup_update_lru_size(lruvec, lru, zid, nr_pages); in update_lru_size()
79 enum lru_list lru; in page_lru() local
86 lru = page_is_file_lru(page) ? LRU_INACTIVE_FILE : LRU_INACTIVE_ANON; in page_lru()
88 lru += LRU_ACTIVE; in page_lru()
90 return lru; in page_lru()
183 enum lru_list lru = type * LRU_INACTIVE_FILE; in lru_gen_update_size() local
200 lru += LRU_ACTIVE; in lru_gen_update_size()
201 __update_lru_size(lruvec, lru, zone, delta); in lru_gen_update_size()
208 lru += LRU_ACTIVE; in lru_gen_update_size()
209 __update_lru_size(lruvec, lru, zone, -delta); in lru_gen_update_size()
215 __update_lru_size(lruvec, lru, zone, -delta); in lru_gen_update_size()
216 __update_lru_size(lruvec, lru + LRU_ACTIVE, zone, delta); in lru_gen_update_size()
262 list_add_tail(&page->lru, &lrugen->pages[gen][type][zone]); in lru_gen_add_page()
264 list_add(&page->lru, &lrugen->pages[gen][type][zone]); in lru_gen_add_page()
286 list_del(&page->lru); in lru_gen_del_page()
323 enum lru_list lru = page_lru(page); in add_page_to_lru_list() local
328 update_lru_size(lruvec, lru, page_zonenum(page), thp_nr_pages(page)); in add_page_to_lru_list()
329 list_add(&page->lru, &lruvec->lists[lru]); in add_page_to_lru_list()
335 enum lru_list lru = page_lru(page); in add_page_to_lru_list_tail() local
340 update_lru_size(lruvec, lru, page_zonenum(page), thp_nr_pages(page)); in add_page_to_lru_list_tail()
341 list_add_tail(&page->lru, &lruvec->lists[lru]); in add_page_to_lru_list_tail()
350 list_del(&page->lru); in del_page_from_lru_list()