Home
last modified time | relevance | path

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

/linux-6.15/include/linux/
H A Dswap.h457 extern long total_swap_pages;
463 return atomic_long_read(&nr_swap_pages) * 2 < total_swap_pages; in vm_swap_full()
517 #define total_swap_pages 0L macro
/linux-6.15/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.c882 allowed += total_swap_pages; in vm_commit_limit()
942 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
H A Dswapfile.c75 long total_swap_pages; variable
2582 total_swap_pages += si->pages; in _enable_swap_info()
2738 total_swap_pages -= p->pages; in SYSCALL_DEFINE1()
3528 val->totalswap = total_swap_pages + nr_to_be_unused; in si_swapinfo()
H A Dswap_state.c70 printk("Total swap = %lukB\n", K(total_swap_pages)); in show_swap_cache_info()
H A Dmemcontrol.c1628 max += min(swap, (unsigned long)total_swap_pages); in mem_cgroup_get_max()
1633 (unsigned long)total_swap_pages); in mem_cgroup_get_max()
3149 val += total_swap_pages - get_nr_swap_pages(); in mem_cgroup_usage()
H A Dshmem.c1566 if (!total_swap_pages) in shmem_writepage()
H A Dvmscan.c2653 if (total_swap_pages > 0) in can_age_anon_pages()
/linux-6.15/fs/proc/
H A Dbase.c588 unsigned long totalpages = totalram_pages() + total_swap_pages; in proc_oom_score()