Home
last modified time | relevance | path

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

/Linux-v5.4/include/linux/
Dswap.h433 extern long total_swap_pages;
440 return atomic_long_read(&nr_swap_pages) * 2 < total_swap_pages; in vm_swap_full()
496 #define total_swap_pages 0L macro
/Linux-v5.4/mm/
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()
Dutil.c746 allowed += total_swap_pages; in vm_commit_limit()
804 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
Dswap_state.c107 printk("Total swap = %lukB\n", total_swap_pages << (PAGE_SHIFT - 10)); in show_swap_cache_info()
Dswapfile.c63 long total_swap_pages; variable
2454 total_swap_pages += p->pages; in _enable_swap_info()
2582 total_swap_pages -= p->pages; in SYSCALL_DEFINE1()
3363 val->totalswap = total_swap_pages + nr_to_be_unused; in si_swapinfo()
Dvmscan.c2245 if (!file && !total_swap_pages) in inactive_list_is_low()
3400 if (!total_swap_pages) in age_active_anon()
Dmemcontrol.c1564 swap_max = min(swap_max, (unsigned long)total_swap_pages); in mem_cgroup_get_max()
1618 if (noswap || !total_swap_pages) in test_mem_cgroup_node_reclaimable()
Dshmem.c1309 if (!total_swap_pages) in shmem_writepage()
/Linux-v5.4/fs/proc/
Dbase.c550 unsigned long totalpages = totalram_pages() + total_swap_pages; in proc_oom_score()