vmpr 37 include/linux/vmpressure.h extern void vmpressure_init(struct vmpressure *vmpr); vmpr 38 include/linux/vmpressure.h extern void vmpressure_cleanup(struct vmpressure *vmpr); vmpr 40 include/linux/vmpressure.h extern struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr); vmpr 263 mm/memcontrol.c struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr) vmpr 265 mm/memcontrol.c return &container_of(vmpr, struct mem_cgroup, vmpressure)->css; vmpr 75 mm/vmpressure.c static struct vmpressure *vmpressure_parent(struct vmpressure *vmpr) vmpr 77 mm/vmpressure.c struct cgroup_subsys_state *css = vmpressure_to_css(vmpr); vmpr 158 mm/vmpressure.c static bool vmpressure_event(struct vmpressure *vmpr, vmpr 165 mm/vmpressure.c mutex_lock(&vmpr->events_lock); vmpr 166 mm/vmpressure.c list_for_each_entry(ev, &vmpr->events, node) { vmpr 176 mm/vmpressure.c mutex_unlock(&vmpr->events_lock); vmpr 183 mm/vmpressure.c struct vmpressure *vmpr = work_to_vmpressure(work); vmpr 190 mm/vmpressure.c spin_lock(&vmpr->sr_lock); vmpr 199 mm/vmpressure.c scanned = vmpr->tree_scanned; vmpr 201 mm/vmpressure.c spin_unlock(&vmpr->sr_lock); vmpr 205 mm/vmpressure.c reclaimed = vmpr->tree_reclaimed; vmpr 206 mm/vmpressure.c vmpr->tree_scanned = 0; vmpr 207 mm/vmpressure.c vmpr->tree_reclaimed = 0; vmpr 208 mm/vmpressure.c spin_unlock(&vmpr->sr_lock); vmpr 213 mm/vmpressure.c if (vmpressure_event(vmpr, level, ancestor, signalled)) vmpr 216 mm/vmpressure.c } while ((vmpr = vmpressure_parent(vmpr))); vmpr 243 mm/vmpressure.c struct vmpressure *vmpr = memcg_to_vmpressure(memcg); vmpr 271 mm/vmpressure.c spin_lock(&vmpr->sr_lock); vmpr 272 mm/vmpressure.c scanned = vmpr->tree_scanned += scanned; vmpr 273 mm/vmpressure.c vmpr->tree_reclaimed += reclaimed; vmpr 274 mm/vmpressure.c spin_unlock(&vmpr->sr_lock); vmpr 278 mm/vmpressure.c schedule_work(&vmpr->work); vmpr 286 mm/vmpressure.c spin_lock(&vmpr->sr_lock); vmpr 287 mm/vmpressure.c scanned = vmpr->scanned += scanned; vmpr 288 mm/vmpressure.c reclaimed = vmpr->reclaimed += reclaimed; vmpr 290 mm/vmpressure.c spin_unlock(&vmpr->sr_lock); vmpr 293 mm/vmpressure.c vmpr->scanned = vmpr->reclaimed = 0; vmpr 294 mm/vmpressure.c spin_unlock(&vmpr->sr_lock); vmpr 365 mm/vmpressure.c struct vmpressure *vmpr = memcg_to_vmpressure(memcg); vmpr 405 mm/vmpressure.c mutex_lock(&vmpr->events_lock); vmpr 406 mm/vmpressure.c list_add(&ev->node, &vmpr->events); vmpr 407 mm/vmpressure.c mutex_unlock(&vmpr->events_lock); vmpr 428 mm/vmpressure.c struct vmpressure *vmpr = memcg_to_vmpressure(memcg); vmpr 431 mm/vmpressure.c mutex_lock(&vmpr->events_lock); vmpr 432 mm/vmpressure.c list_for_each_entry(ev, &vmpr->events, node) { vmpr 439 mm/vmpressure.c mutex_unlock(&vmpr->events_lock); vmpr 449 mm/vmpressure.c void vmpressure_init(struct vmpressure *vmpr) vmpr 451 mm/vmpressure.c spin_lock_init(&vmpr->sr_lock); vmpr 452 mm/vmpressure.c mutex_init(&vmpr->events_lock); vmpr 453 mm/vmpressure.c INIT_LIST_HEAD(&vmpr->events); vmpr 454 mm/vmpressure.c INIT_WORK(&vmpr->work, vmpressure_work_fn); vmpr 464 mm/vmpressure.c void vmpressure_cleanup(struct vmpressure *vmpr) vmpr 470 mm/vmpressure.c flush_work(&vmpr->work);