Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/
Dswap.h443 extern long total_swap_pages;
450 return atomic_long_read(&nr_swap_pages) * 2 < total_swap_pages; in vm_swap_full()
507 #define total_swap_pages 0L macro
/Linux-v5.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.c814 allowed += total_swap_pages; in vm_commit_limit()
873 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
Dswapfile.c62 long total_swap_pages; variable
2489 total_swap_pages += p->pages; in _enable_swap_info()
2617 total_swap_pages -= p->pages; in SYSCALL_DEFINE1()
3426 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.c2534 if (total_swap_pages && inactive_is_low(lruvec, LRU_INACTIVE_ANON)) in shrink_lruvec()
3363 if (!total_swap_pages) in age_active_anon()
Dmemcontrol.c1697 (unsigned long)total_swap_pages); in mem_cgroup_get_max()
1703 max += min(swap, (unsigned long)total_swap_pages); in mem_cgroup_get_max()
Dshmem.c1375 if (!total_swap_pages) in shmem_writepage()
/Linux-v5.10/fs/proc/
Dbase.c552 unsigned long totalpages = totalram_pages() + total_swap_pages; in proc_oom_score()