Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/linux/
Dswap.h458 extern long total_swap_pages;
468 return atomic_long_read(&nr_swap_pages) * 2 < total_swap_pages; in vm_swap_full()
526 #define total_swap_pages 0L macro
/kernel/linux/linux-5.10/mm/
Doom_kill.c265 oc->totalpages = totalram_pages() + total_swap_pages; in constrained_alloc()
287 oc->totalpages = total_swap_pages; in constrained_alloc()
300 oc->totalpages = total_swap_pages; in constrained_alloc()
Dutil.c867 allowed += total_swap_pages; in vm_commit_limit()
926 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
Dswapfile.c63 long total_swap_pages; variable
2504 total_swap_pages += p->pages; in _enable_swap_info()
2632 total_swap_pages -= p->pages; in SYSCALL_DEFINE1()
3441 val->totalswap = total_swap_pages + nr_to_be_unused; in si_swapinfo()
Dswap_state.c107 printk("Total swap = %lukB\n", total_swap_pages << (PAGE_SHIFT - 10)); in show_swap_cache_info()
Dvmscan.c2520 if (total_swap_pages && inactive_is_low(lruvec, LRU_INACTIVE_ANON)) in shrink_lruvec()
3377 if (!total_swap_pages) in age_active_anon()
Dmemcontrol.c1722 (unsigned long)total_swap_pages); in mem_cgroup_get_max()
1728 max += min(swap, (unsigned long)total_swap_pages); in mem_cgroup_get_max()
Dshmem.c1380 if (!total_swap_pages) in shmem_writepage()
/kernel/linux/linux-5.10/fs/proc/
Dbase.c561 unsigned long totalpages = totalram_pages() + total_swap_pages; in proc_oom_score()