Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dswap.h463 extern atomic_long_t nr_swap_pages;
471 return atomic_long_read(&nr_swap_pages) * 2 < total_swap_pages; in vm_swap_full()
476 return atomic_long_read(&nr_swap_pages); in get_nr_swap_pages()
/linux/mm/
H A Dswapfile.c68 atomic_long_t nr_swap_pages; variable
74 EXPORT_SYMBOL_GPL(nr_swap_pages);
989 atomic_long_add(nr_entries, &nr_swap_pages); in swap_range_free()
1262 avail_pgs = atomic_long_read(&nr_swap_pages) / size; in get_swap_pages()
1270 atomic_long_sub(n_goal * size, &nr_swap_pages); in get_swap_pages()
1324 &nr_swap_pages); in get_swap_pages()
1952 atomic_long_dec(&nr_swap_pages); in get_swap_page_of_type()
2662 atomic_long_add(si->pages, &nr_swap_pages); in _enable_swap_info()
2794 atomic_long_sub(p->pages, &nr_swap_pages); in SYSCALL_DEFINE1()
3612 val->freeswap = atomic_long_read(&nr_swap_pages) + nr_to_be_unused; in si_swapinfo()
H A Dmemcontrol.c5073 long nr_swap_pages = get_nr_swap_pages(); in mem_cgroup_get_nr_swap_pages() local
5076 return nr_swap_pages; in mem_cgroup_get_nr_swap_pages()
5078 nr_swap_pages = min_t(long, nr_swap_pages, in mem_cgroup_get_nr_swap_pages()
5081 return nr_swap_pages; in mem_cgroup_get_nr_swap_pages()