Home
last modified time | relevance | path

Searched refs:vmpr (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/mm/
Dvmpressure.c75 static struct vmpressure *vmpressure_parent(struct vmpressure *vmpr) in vmpressure_parent() argument
77 struct mem_cgroup *memcg = vmpressure_to_memcg(vmpr); in vmpressure_parent()
157 static bool vmpressure_event(struct vmpressure *vmpr, in vmpressure_event() argument
164 mutex_lock(&vmpr->events_lock); in vmpressure_event()
165 list_for_each_entry(ev, &vmpr->events, node) { in vmpressure_event()
175 mutex_unlock(&vmpr->events_lock); in vmpressure_event()
182 struct vmpressure *vmpr = work_to_vmpressure(work); in vmpressure_work_fn() local
189 spin_lock(&vmpr->sr_lock); in vmpressure_work_fn()
198 scanned = vmpr->tree_scanned; in vmpressure_work_fn()
200 spin_unlock(&vmpr->sr_lock); in vmpressure_work_fn()
[all …]
Dmemcontrol.c247 struct mem_cgroup *vmpressure_to_memcg(struct vmpressure *vmpr) in vmpressure_to_memcg() argument
249 return container_of(vmpr, struct mem_cgroup, vmpressure); in vmpressure_to_memcg()
/linux-6.6.21/include/linux/
Dvmpressure.h37 extern void vmpressure_init(struct vmpressure *vmpr);
38 extern void vmpressure_cleanup(struct vmpressure *vmpr);
40 extern struct mem_cgroup *vmpressure_to_memcg(struct vmpressure *vmpr);