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)
158 static bool vmpressure_event(struct vmpressure *vmpr,
183 struct vmpressure *vmpr = work_to_vmpressure(work);
192 * Several contexts might be calling vmpressure(), so it is
220 * vmpressure() - Account memory pressure through scanned/reclaimed ratio
231 * If @tree is set, vmpressure is in traditional userspace reporting
240 void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree,
243 struct vmpressure *vmpr = memcg_to_vmpressure(memcg);
333 * OK, the prio is below the threshold, updating vmpressure
336 * to the vmpressure() basically means that we signal 'critical'
339 vmpressure(gfp, memcg, true, vmpressure_win, 0);
345 * vmpressure_register_event() - Bind vmpressure notifications to an eventfd
346 * @memcg: memcg that is interested in vmpressure notifications
350 * This function associates eventfd context with the vmpressure
365 struct vmpressure *vmpr = memcg_to_vmpressure(memcg);
413 * vmpressure_unregister_event() - Unbind eventfd from vmpressure
415 * @eventfd: eventfd context that was used to link vmpressure with the @cg
418 * the vmpressure notifications, and then frees internal resources
426 struct vmpressure *vmpr = memcg_to_vmpressure(memcg);
441 * vmpressure_init() - Initialize vmpressure control structure
444 * This function should be called on every allocated vmpressure structure
447 void vmpressure_init(struct vmpressure *vmpr)
456 * vmpressure_cleanup() - shuts down vmpressure control structure
462 void vmpressure_cleanup(struct vmpressure *vmpr)