Home
last modified time | relevance | path

Searched refs:lru (Results 1 – 16 of 16) sorted by relevance

/include/linux/
Dlist_lru.h37 struct list_lru_one *lru[]; member
44 struct list_lru_one lru; member
61 void list_lru_destroy(struct list_lru *lru);
62 int __list_lru_init(struct list_lru *lru, bool memcg_aware,
65 #define list_lru_init(lru) \ argument
66 __list_lru_init((lru), false, NULL, NULL)
67 #define list_lru_init_key(lru, key) \ argument
68 __list_lru_init((lru), false, (key), NULL)
69 #define list_lru_init_memcg(lru, shrinker) \ argument
70 __list_lru_init((lru), true, NULL, shrinker)
[all …]
Dmm_inline.h29 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()
[all …]
Dballoon_compaction.h106 list_add(&page->lru, &balloon->pages); in balloon_page_insert()
128 list_del(&page->lru); in balloon_page_delete()
151 list_add(&page->lru, &balloon->pages); in balloon_page_insert()
158 list_del(&page->lru); in balloon_page_delete()
193 list_add(&page->lru, pages); in balloon_page_push()
205 struct page *page = list_first_entry_or_null(pages, struct page, lru); in balloon_page_pop()
210 list_del(&page->lru); in balloon_page_pop()
Dmmzone.h116 struct page, lru); in get_page_from_free_area()
284 #define for_each_lru(lru) for (lru = 0; lru < NR_LRU_LISTS; lru++) argument
286 #define for_each_evictable_lru(lru) for (lru = 0; lru <= LRU_ACTIVE_FILE; lru++) argument
288 static inline bool is_file_lru(enum lru_list lru) in is_file_lru() argument
290 return (lru == LRU_INACTIVE_FILE || lru == LRU_ACTIVE_FILE); in is_file_lru()
293 static inline bool is_active_lru(enum lru_list lru) in is_active_lru() argument
295 return (lru == LRU_ACTIVE_ANON || lru == LRU_ACTIVE_FILE); in is_active_lru()
Dlru_cache.h166 struct list_head lru; member
Dvmstat.h355 static inline const char *lru_list_name(enum lru_list lru) in lru_list_name() argument
357 return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" in lru_list_name()
Dpage-flags.h353 PAGEFLAG(LRU, lru, PF_HEAD) __CLEARPAGEFLAG(LRU, lru, PF_HEAD)
354 TESTCLEARFLAG(LRU, lru, PF_HEAD)
Dmemcontrol.h923 void mem_cgroup_update_lru_size(struct lruvec *lruvec, enum lru_list lru,
928 enum lru_list lru, int zone_idx) in mem_cgroup_get_zone_lru_size() argument
933 return READ_ONCE(mz->lru_zone_size[zone_idx][lru]); in mem_cgroup_get_zone_lru_size()
1383 enum lru_list lru, int zone_idx) in mem_cgroup_get_zone_lru_size() argument
Dmm_types.h89 struct list_head lru; member
Dnfs_fs.h63 struct list_head lru; member
Dmm.h244 #define lru_to_page(head) (list_entry((head)->prev, struct page, lru))
1743 return (uintptr_t)page->lru.next & BIT(1); in page_is_pfmemalloc()
1752 page->lru.next = (void *)BIT(1); in set_page_pfmemalloc()
1757 page->lru.next = NULL; in clear_page_pfmemalloc()
/include/trace/events/
Dpagemap.h37 __field(enum lru_list, lru )
44 __entry->lru = page_lru(page);
52 __entry->lru,
Dvmscan.h275 int lru),
277 TP_ARGS(highest_zoneidx, order, nr_requested, nr_scanned, nr_skipped, nr_taken, isolate_mode, lru),
287 __field(int, lru)
298 __entry->lru = lru;
313 __print_symbolic(__entry->lru, LRU_NAMES))
/include/trace/hooks/
Dvmscan.h19 TP_PROTO(struct page *page, unsigned long nr_to_scan, int lru, bool *bypass),
20 TP_ARGS(page, nr_to_scan, lru, bypass));
/include/drm/ttm/
Dttm_resource.h132 struct list_head lru[TTM_MAX_BO_PRIORITY]; member
230 WARN_ON(!list_empty(&man->lru[i])); in ttm_resource_manager_set_used()
Dttm_bo_api.h147 struct list_head lru; member