Home
last modified time | relevance | path

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

/mm/
Dfrontswap.c373 unsigned long totalpages = 0; in __frontswap_curr_pages() local
378 totalpages += atomic_read(&si->frontswap_pages); in __frontswap_curr_pages()
379 return totalpages; in __frontswap_curr_pages()
472 unsigned long totalpages = 0; in frontswap_curr_pages() local
475 totalpages = __frontswap_curr_pages(); in frontswap_curr_pages()
478 return totalpages; in frontswap_curr_pages()
Doom_kill.c206 long oom_badness(struct task_struct *p, unsigned long totalpages) in oom_badness() argument
240 adj *= totalpages / 1000; in oom_badness()
265 oc->totalpages = mem_cgroup_get_max(oc->memcg) ?: 1; in constrained_alloc()
270 oc->totalpages = totalram_pages() + total_swap_pages; in constrained_alloc()
292 oc->totalpages = total_swap_pages; in constrained_alloc()
294 oc->totalpages += node_present_pages(nid); in constrained_alloc()
305 oc->totalpages = total_swap_pages; in constrained_alloc()
307 oc->totalpages += node_present_pages(nid); in constrained_alloc()
346 points = oom_badness(task, oc->totalpages); in oom_evaluate_task()
Dpage_alloc.c7009 unsigned long realtotalpages = 0, totalpages = 0; in calculate_node_totalpages() local
7037 totalpages += size; in calculate_node_totalpages()
7041 pgdat->node_spanned_pages = totalpages; in calculate_node_totalpages()
7459 unsigned long totalpages = 0; in early_calculate_totalpages() local
7466 totalpages += pages; in early_calculate_totalpages()
7470 return totalpages; in early_calculate_totalpages()
7486 unsigned long totalpages = early_calculate_totalpages(); in find_zone_movable_pfns_for_nodes() local
7548 required_kernelcore = (totalpages * 100 * required_kernelcore_percent) / in find_zone_movable_pfns_for_nodes()
7551 required_movablecore = (totalpages * 100 * required_movablecore_percent) / in find_zone_movable_pfns_for_nodes()
7571 required_movablecore = min(totalpages, required_movablecore); in find_zone_movable_pfns_for_nodes()
[all …]