Home
last modified time | relevance | path

Searched refs:lru_list (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dlru_cache.c17 INIT_LIST_HEAD(&cache->lru_list); in btrfs_lru_cache_init()
57 list_move_tail(&entry->lru_list, &cache->lru_list); in btrfs_lru_cache_lookup()
79 list_del(&entry->lru_list); in btrfs_lru_cache_remove()
137 lru_entry = list_first_entry(&cache->lru_list, in btrfs_lru_cache_store()
139 lru_list); in btrfs_lru_cache_store()
143 list_add_tail(&new_entry->lru_list, &cache->lru_list); in btrfs_lru_cache_store()
161 list_for_each_entry_safe(entry, tmp, &cache->lru_list, lru_list) in btrfs_lru_cache_clear()
H A Dlru_cache.h18 struct list_head lru_list; member
42 struct list_head lru_list; member
51 list_for_each_entry_safe_reverse((entry), (tmp), &(cache)->lru_list, lru_list)
61 return list_first_entry_or_null(&cache->lru_list, in btrfs_lru_cache_lru_entry()
62 struct btrfs_lru_cache_entry, lru_list); in btrfs_lru_cache_lru_entry()
H A Dzstd.c50 struct list_head lru_list; member
78 struct list_head lru_list; member
114 if (list_empty(&wsm.lru_list)) { in zstd_reclaim_timer_fn()
119 list_for_each_prev_safe(pos, next, &wsm.lru_list) { in zstd_reclaim_timer_fn()
121 lru_list); in zstd_reclaim_timer_fn()
132 list_del(&victim->lru_list); in zstd_reclaim_timer_fn()
141 if (!list_empty(&wsm.lru_list)) in zstd_reclaim_timer_fn()
186 INIT_LIST_HEAD(&wsm.lru_list); in zstd_init_workspace_manager()
211 list_del(&workspace->lru_list); in zstd_cleanup_workspace_manager()
246 list_del(&workspace->lru_list); in zstd_find_workspace()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gvt/
H A Dsched_policy.c54 struct list_head lru_list; member
108 vgpu_data = container_of(pos, struct vgpu_sched_data, lru_list); in gvt_balance_timeslice()
113 vgpu_data = container_of(pos, struct vgpu_sched_data, lru_list); in gvt_balance_timeslice()
122 vgpu_data = container_of(pos, struct vgpu_sched_data, lru_list); in gvt_balance_timeslice()
186 vgpu_data = container_of(pos, struct vgpu_sched_data, lru_list); in find_busy_vgpu()
228 list_del_init(&vgpu_data->lru_list); in tbs_sched_func()
229 list_add_tail(&vgpu_data->lru_list, in tbs_sched_func()
321 INIT_LIST_HEAD(&data->lru_list); in tbs_sched_init_vgpu()
347 if (!list_empty(&vgpu_data->lru_list)) in tbs_sched_start_schedule()
355 list_add(&vgpu_data->lru_list, &sched_data->lru_runq_head); in tbs_sched_start_schedule()
[all …]
H A Dgtt.h171 struct list_head lru_list; member
H A Dgtt.c1878 INIT_LIST_HEAD(&mm->ppgtt_mm.lru_list); in intel_vgpu_create_ppgtt_mm()
1897 list_add_tail(&mm->ppgtt_mm.lru_list, &gvt->gtt.ppgtt_mm_lru_list_head); in intel_vgpu_create_ppgtt_mm()
1959 list_del(&mm->ppgtt_mm.lru_list); in _intel_vgpu_mm_release()
2006 list_move_tail(&mm->ppgtt_mm.lru_list, in intel_vgpu_pin_mm()
2022 mm = container_of(pos, struct intel_vgpu_mm, ppgtt_mm.lru_list); in reclaim_one_ppgtt_mm()
2027 list_del_init(&mm->ppgtt_mm.lru_list); in reclaim_one_ppgtt_mm()
2768 list_del_init(&mm->ppgtt_mm.lru_list); in intel_vgpu_invalidate_ppgtt()
/openbmc/linux/include/linux/
H A Dmm_inline.h38 enum lru_list lru, enum zone_type zid, in __update_lru_size()
52 enum lru_list lru, enum zone_type zid, in update_lru_size()
86 static __always_inline enum lru_list folio_lru_list(struct folio *folio) in folio_lru_list()
88 enum lru_list lru; in folio_lru_list()
180 enum lru_list lru = type * LRU_INACTIVE_FILE; in lru_gen_update_size()
320 enum lru_list lru = folio_lru_list(folio); in lruvec_add_folio()
334 enum lru_list lru = folio_lru_list(folio); in lruvec_add_folio_tail()
348 enum lru_list lru = folio_lru_list(folio); in lruvec_del_folio()
H A Dmmzone.h265 enum lru_list { enum
286 static inline bool is_file_lru(enum lru_list lru) in is_file_lru()
291 static inline bool is_active_lru(enum lru_list lru) in is_active_lru()
H A Dmemcontrol.h910 void mem_cgroup_update_lru_size(struct lruvec *lruvec, enum lru_list lru,
915 enum lru_list lru, int zone_idx) in mem_cgroup_get_zone_lru_size()
1407 enum lru_list lru, int zone_idx) in mem_cgroup_get_zone_lru_size()
H A Dvmstat.h520 static inline const char *lru_list_name(enum lru_list lru) in lru_list_name()
/openbmc/linux/fs/xfs/
H A Dxfs_mru_cache.c132 struct list_head *lru_list; in _xfs_mru_cache_migrate() local
145 lru_list = mru->lists + mru->lru_grp; in _xfs_mru_cache_migrate()
146 if (!list_empty(lru_list)) in _xfs_mru_cache_migrate()
147 list_splice_init(lru_list, mru->reap_list.prev); in _xfs_mru_cache_migrate()
171 lru_list = mru->lists + ((mru->lru_grp + grp) % mru->grp_count); in _xfs_mru_cache_migrate()
172 if (!list_empty(lru_list)) in _xfs_mru_cache_migrate()
/openbmc/linux/net/netfilter/
H A Dxt_recent.c68 struct list_head lru_list; member
84 struct list_head lru_list; member
147 list_del(&e->lru_list); in recent_entry_remove()
163 e = list_entry(t->lru_list.next, struct recent_entry, lru_list); in recent_entry_reap()
186 e = list_entry(t->lru_list.next, struct recent_entry, lru_list); in recent_entry_init()
204 list_add_tail(&e->lru_list, &t->lru_list); in recent_entry_init()
215 list_move_tail(&e->lru_list, &t->lru_list); in recent_entry_update()
404 INIT_LIST_HEAD(&t->lru_list); in recent_mt_check()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dmmu_rb.c64 INIT_LIST_HEAD(&h->lru_list); in hfi1_mmu_rb_register()
139 list_add_tail(&mnode->list, &handler->lru_list); in hfi1_mmu_rb_insert()
155 list_move_tail(&node->list, &handler->lru_list); in hfi1_mmu_rb_get_first()
239 list_for_each_entry_safe(rbnode, ptr, &handler->lru_list, list) { in hfi1_mmu_rb_evict()
H A Dmmu_rb.h46 struct list_head lru_list; member
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_resource.c678 struct list_head *lru_list = &dev_priv->res_lru[res->func->res_type]; in vmw_resource_validate() local
695 if (list_empty(lru_list) || !res->func->may_evict) { in vmw_resource_validate()
704 (list_first_entry(lru_list, struct vmw_resource, in vmw_resource_validate()
714 list_add_tail(&evict_res->lru_head, lru_list); in vmw_resource_validate()
888 struct list_head *lru_list = &dev_priv->res_lru[type]; in vmw_resource_evict_type() local
897 if (list_empty(lru_list)) in vmw_resource_evict_type()
901 list_first_entry(lru_list, struct vmw_resource, in vmw_resource_evict_type()
910 list_add_tail(&evict_res->lru_head, lru_list); in vmw_resource_evict_type()
/openbmc/linux/kernel/bpf/
H A Dbpf_lru_list.c326 struct bpf_lru_list *l = &lru->common_lru.lru_list; in bpf_lru_list_pop_free_to_local()
538 bpf_lru_list_push_free(&lru->common_lru.lru_list, node); in bpf_common_lru_push_free()
568 struct bpf_lru_list *l = &lru->common_lru.lru_list; in bpf_common_lru_populate()
682 bpf_lru_list_init(&clru->lru_list); in bpf_lru_init()
H A Dbpf_lru_list.h47 struct bpf_lru_list lru_list; member
/openbmc/linux/include/trace/events/
H A Dpagemap.h37 __field(enum lru_list, lru )
/openbmc/linux/mm/
H A Dmmzone.c77 enum lru_list lru; in lruvec_init()
H A Dvmscan.c654 static unsigned long lruvec_lru_size(struct lruvec *lruvec, enum lru_list lru, in lruvec_lru_size()
2251 enum lru_list lru, unsigned long *nr_zone_taken) in update_lru_sizes()
2288 enum lru_list lru) in isolate_lru_folios()
2550 enum lru_list lru) in shrink_inactive_list()
2671 enum lru_list lru) in shrink_active_list()
2824 static unsigned long shrink_list(enum lru_list lru, unsigned long nr_to_scan, in shrink_list()
2866 static bool inactive_is_low(struct lruvec *lruvec, enum lru_list inactive_lru) in inactive_is_low()
2868 enum lru_list active_lru = inactive_lru + LRU_ACTIVE; in inactive_is_low()
3016 enum lru_list lru; in get_scan_count()
3829 enum lru_list lru = type * LRU_INACTIVE_FILE; in reset_batch_size()
[all …]
H A Dmemcontrol.c1384 void mem_cgroup_update_lru_size(struct lruvec *lruvec, enum lru_list lru, in mem_cgroup_update_lru_size()
3979 enum lru_list lru; in mem_cgroup_node_nr_lru_pages()
3999 enum lru_list lru; in mem_cgroup_nr_lru_pages()
/openbmc/linux/fs/gfs2/
H A Dglock.c70 static LIST_HEAD(lru_list);
249 list_move_tail(&gl->gl_lru, &lru_list); in gfs2_glock_add_to_lru()
2011 list_add(&gl->gl_lru, &lru_list); in gfs2_dispose_glock_lru()
2045 list_for_each_entry_safe(gl, next, &lru_list, gl_lru) { in gfs2_scan_glock_lru()
/openbmc/linux/Documentation/mm/
H A Dunevictable-lru.rst100 extending the lru_list enum.
104 lru_list enum element). The memory controller tracks the movement of pages to