Home
last modified time | relevance | path

Searched refs:total_swap_pages (Results 1 – 9 of 9) sorted by relevance

/linux/include/linux/
H A Dswap.h441 extern long total_swap_pages;
447 return atomic_long_read(&nr_swap_pages) * 2 < total_swap_pages; in vm_swap_full()
493 #define total_swap_pages 0L macro
/linux/mm/
H A Doom_kill.c266 oc->totalpages = totalram_pages() + total_swap_pages; in constrained_alloc()
288 oc->totalpages = total_swap_pages; in constrained_alloc()
301 oc->totalpages = total_swap_pages; in constrained_alloc()
H A Dutil.c884 allowed += total_swap_pages; in vm_commit_limit()
944 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
H A Dswap_state.c72 printk("Total swap = %lukB\n", K(total_swap_pages)); in show_swap_cache_info()
H A Dswapfile.c76 long total_swap_pages; variable
2723 total_swap_pages += si->pages; in _enable_swap_info()
2878 total_swap_pages -= p->pages; in SYSCALL_DEFINE1()
3658 val->totalswap = total_swap_pages + nr_to_be_unused; in si_swapinfo()
H A Dmemcontrol.c1614 max += min(swap, (unsigned long)total_swap_pages); in mem_cgroup_get_max()
1619 (unsigned long)total_swap_pages); in mem_cgroup_get_max()
3287 val += total_swap_pages - get_nr_swap_pages(); in mem_cgroup_usage()
H A Dshmem.c1604 if (!total_swap_pages) in shmem_writeout()
H A Dvmscan.c2645 if (total_swap_pages > 0) in can_age_anon_pages()
/linux/fs/proc/
H A Dbase.c588 unsigned long totalpages = totalram_pages() + total_swap_pages; in proc_oom_score()