Searched refs:totalpages (Results 1 – 4 of 4) sorted by relevance
/mm/ |
D | oom_kill.c | 150 const nodemask_t *nodemask, unsigned long totalpages) in oom_badness() argument 184 adj *= totalpages / 1000; in oom_badness() 200 unsigned long *totalpages) in constrained_alloc() argument 209 *totalpages = totalram_pages + total_swap_pages; in constrained_alloc() 227 *totalpages = total_swap_pages; in constrained_alloc() 229 *totalpages += node_spanned_pages(nid); in constrained_alloc() 240 *totalpages = total_swap_pages; in constrained_alloc() 242 *totalpages += node_spanned_pages(nid); in constrained_alloc() 250 unsigned long *totalpages) in constrained_alloc() argument 252 *totalpages = totalram_pages + total_swap_pages; in constrained_alloc() [all …]
|
D | frontswap.c | 332 unsigned long totalpages = 0; in __frontswap_curr_pages() local 337 totalpages += atomic_read(&si->frontswap_pages); in __frontswap_curr_pages() 338 return totalpages; in __frontswap_curr_pages() 431 unsigned long totalpages = 0; in frontswap_curr_pages() local 434 totalpages = __frontswap_curr_pages(); in frontswap_curr_pages() 437 return totalpages; in frontswap_curr_pages()
|
D | page_alloc.c | 4735 unsigned long realtotalpages, totalpages = 0; in calculate_node_totalpages() local 4739 totalpages += zone_spanned_pages_in_node(pgdat->node_id, i, in calculate_node_totalpages() 4743 pgdat->node_spanned_pages = totalpages; in calculate_node_totalpages() 4745 realtotalpages = totalpages; in calculate_node_totalpages() 5135 unsigned long totalpages = 0; in early_calculate_totalpages() local 5142 totalpages += pages; in early_calculate_totalpages() 5146 return totalpages; in early_calculate_totalpages() 5162 unsigned long totalpages = early_calculate_totalpages(); in find_zone_movable_pfns_for_nodes() local 5206 corepages = totalpages - required_movablecore; in find_zone_movable_pfns_for_nodes()
|
D | memcontrol.c | 1728 unsigned long totalpages; in mem_cgroup_out_of_memory() local 1743 totalpages = mem_cgroup_get_limit(memcg) >> PAGE_SHIFT ? : 1; in mem_cgroup_out_of_memory() 1750 switch (oom_scan_process_thread(task, totalpages, NULL, in mem_cgroup_out_of_memory() 1770 points = oom_badness(task, memcg, NULL, totalpages); in mem_cgroup_out_of_memory() 1789 points = chosen_points * 1000 / totalpages; in mem_cgroup_out_of_memory() 1790 oom_kill_process(chosen, gfp_mask, order, points, totalpages, memcg, in mem_cgroup_out_of_memory()
|