Home
last modified time | relevance | path

Searched refs:totalpages (Results 1 – 4 of 4) sorted by relevance

/mm/
Doom_kill.c160 const nodemask_t *nodemask, unsigned long totalpages) in oom_badness() argument
194 adj *= totalpages / 1000; in oom_badness()
209 unsigned long *totalpages) in constrained_alloc() argument
218 *totalpages = totalram_pages + total_swap_pages; in constrained_alloc()
237 *totalpages = total_swap_pages; in constrained_alloc()
239 *totalpages += node_spanned_pages(nid); in constrained_alloc()
250 *totalpages = total_swap_pages; in constrained_alloc()
252 *totalpages += node_spanned_pages(nid); in constrained_alloc()
259 unsigned long *totalpages) in constrained_alloc() argument
261 *totalpages = totalram_pages + total_swap_pages; in constrained_alloc()
[all …]
Dfrontswap.c379 unsigned long totalpages = 0; in __frontswap_curr_pages() local
384 totalpages += atomic_read(&si->frontswap_pages); in __frontswap_curr_pages()
385 return totalpages; in __frontswap_curr_pages()
478 unsigned long totalpages = 0; in frontswap_curr_pages() local
481 totalpages = __frontswap_curr_pages(); in frontswap_curr_pages()
484 return totalpages; in frontswap_curr_pages()
Dpage_alloc.c5169 unsigned long realtotalpages = 0, totalpages = 0; in calculate_node_totalpages() local
5186 totalpages += size; in calculate_node_totalpages()
5190 pgdat->node_spanned_pages = totalpages; in calculate_node_totalpages()
5571 unsigned long totalpages = 0; in early_calculate_totalpages() local
5578 totalpages += pages; in early_calculate_totalpages()
5582 return totalpages; in early_calculate_totalpages()
5598 unsigned long totalpages = early_calculate_totalpages(); in find_zone_movable_pfns_for_nodes() local
5642 required_movablecore = min(totalpages, required_movablecore); in find_zone_movable_pfns_for_nodes()
5643 corepages = totalpages - required_movablecore; in find_zone_movable_pfns_for_nodes()
5652 if (!required_kernelcore || required_kernelcore >= totalpages) in find_zone_movable_pfns_for_nodes()
Dmemcontrol.c1352 unsigned long totalpages; in mem_cgroup_out_of_memory() local
1369 totalpages = mem_cgroup_get_limit(memcg) ? : 1; in mem_cgroup_out_of_memory()
1376 switch (oom_scan_process_thread(&oc, task, totalpages)) { in mem_cgroup_out_of_memory()
1395 points = oom_badness(task, memcg, NULL, totalpages); in mem_cgroup_out_of_memory()
1413 points = chosen_points * 1000 / totalpages; in mem_cgroup_out_of_memory()
1414 oom_kill_process(&oc, chosen, points, totalpages, memcg, in mem_cgroup_out_of_memory()