Lines Matching refs:totalpages
184 const nodemask_t *nodemask, unsigned long totalpages) in oom_badness() argument
204 if (!totalpages) in oom_badness()
205 totalpages = 1; in oom_badness()
215 points /= totalpages; in oom_badness()
248 unsigned long *totalpages) in constrained_alloc() argument
257 *totalpages = totalram_pages + total_swap_pages; in constrained_alloc()
275 *totalpages = total_swap_pages; in constrained_alloc()
277 *totalpages += node_spanned_pages(nid); in constrained_alloc()
288 *totalpages = total_swap_pages; in constrained_alloc()
290 *totalpages += node_spanned_pages(nid); in constrained_alloc()
298 unsigned long *totalpages) in constrained_alloc() argument
300 *totalpages = totalram_pages + total_swap_pages; in constrained_alloc()
312 unsigned long totalpages, struct mem_cgroup *memcg, in select_bad_process() argument
369 points = oom_badness(p, memcg, nodemask, totalpages); in select_bad_process()
440 unsigned int points, unsigned long totalpages, in oom_kill_process() argument
485 totalpages); in oom_kill_process()
704 unsigned long totalpages; in out_of_memory() local
730 &totalpages); in out_of_memory()
738 oom_kill_process(current, gfp_mask, order, 0, totalpages, NULL, in out_of_memory()
744 p = select_bad_process(&points, totalpages, NULL, mpol_mask, in out_of_memory()
753 oom_kill_process(p, gfp_mask, order, points, totalpages, NULL, in out_of_memory()