Lines Matching defs:vmpressure

22 #include <linux/vmpressure.h>
50 * When there are too little pages left to scan, vmpressure() may miss the
70 static struct vmpressure *work_to_vmpressure(struct work_struct *work)
72 return container_of(work, struct vmpressure, work);
75 static struct vmpressure *vmpressure_parent(struct vmpressure *vmpr)
157 static bool vmpressure_event(struct vmpressure *vmpr,
182 struct vmpressure *vmpr = work_to_vmpressure(work);
191 * Several contexts might be calling vmpressure(), so it is
219 * vmpressure() - Account memory pressure through scanned/reclaimed ratio
230 * If @tree is set, vmpressure is in traditional userspace reporting
239 void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree,
242 struct vmpressure *vmpr;
345 * OK, the prio is below the threshold, updating vmpressure
348 * to the vmpressure() basically means that we signal 'critical'
351 vmpressure(gfp, memcg, true, vmpressure_win, 0);
357 * vmpressure_register_event() - Bind vmpressure notifications to an eventfd
358 * @memcg: memcg that is interested in vmpressure notifications
362 * This function associates eventfd context with the vmpressure
377 struct vmpressure *vmpr = memcg_to_vmpressure(memcg);
425 * vmpressure_unregister_event() - Unbind eventfd from vmpressure
427 * @eventfd: eventfd context that was used to link vmpressure with the @cg
430 * the vmpressure notifications, and then frees internal resources
438 struct vmpressure *vmpr = memcg_to_vmpressure(memcg);
453 * vmpressure_init() - Initialize vmpressure control structure
456 * This function should be called on every allocated vmpressure structure
459 void vmpressure_init(struct vmpressure *vmpr)
468 * vmpressure_cleanup() - shuts down vmpressure control structure
474 void vmpressure_cleanup(struct vmpressure *vmpr)