Home
last modified time | relevance | path

Searched refs:nr_swap_pages (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/include/linux/
H A Dswap.h456 extern atomic_long_t nr_swap_pages;
464 return atomic_long_read(&nr_swap_pages) * 2 < total_swap_pages; in vm_swap_full()
469 return atomic_long_read(&nr_swap_pages); in get_nr_swap_pages()
/openbmc/linux/mm/
H A Dswapfile.c58 atomic_long_t nr_swap_pages; variable
64 EXPORT_SYMBOL_GPL(nr_swap_pages);
739 atomic_long_add(nr_entries, &nr_swap_pages); in swap_range_free()
1060 avail_pgs = atomic_long_read(&nr_swap_pages) / size; in get_swap_pages()
1068 atomic_long_sub(n_goal * size, &nr_swap_pages); in get_swap_pages()
1126 &nr_swap_pages); in get_swap_pages()
1641 atomic_long_dec(&nr_swap_pages); in get_swap_page_of_type()
2335 atomic_long_add(p->pages, &nr_swap_pages); in _enable_swap_info()
2464 atomic_long_sub(p->pages, &nr_swap_pages); in SYSCALL_DEFINE1()
3263 val->freeswap = atomic_long_read(&nr_swap_pages) + nr_to_be_unused; in si_swapinfo()
H A Dmemcontrol.c7627 long nr_swap_pages = get_nr_swap_pages(); in mem_cgroup_get_nr_swap_pages() local
7630 return nr_swap_pages; in mem_cgroup_get_nr_swap_pages()
7632 nr_swap_pages = min_t(long, nr_swap_pages, in mem_cgroup_get_nr_swap_pages()
7635 return nr_swap_pages; in mem_cgroup_get_nr_swap_pages()