Home
last modified time | relevance | path

Searched refs:swap (Results 1 – 13 of 13) sorted by relevance

/mm/
Dmemcontrol.c1698 K((u64)page_counter_read(&memcg->swap)), in mem_cgroup_print_oom_meminfo()
1699 K((u64)READ_ONCE(memcg->swap.max)), memcg->swap.failcnt); in mem_cgroup_print_oom_meminfo()
1728 max += min(READ_ONCE(memcg->swap.max), in mem_cgroup_get_max()
1733 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max() local
1735 max += min(swap, (unsigned long)total_swap_pages); in mem_cgroup_get_max()
2583 overage = calculate_overage(page_counter_read(&memcg->swap), in swap_find_max_overage()
2584 READ_ONCE(memcg->swap.high)); in swap_find_max_overage()
2868 swap_high = page_counter_read(&memcg->swap) > in try_charge()
2869 READ_ONCE(memcg->swap.high); in try_charge()
3607 static unsigned long mem_cgroup_usage(struct mem_cgroup *memcg, bool swap) in mem_cgroup_usage() argument
[all …]
DKconfig435 XXX: For now, swap cluster backing transparent huge page
471 bool "Enable frontswap to cache swap pages if tmem is present"
475 of a "backing" store for a swap device. The data is stored into
479 a significant swap I/O reduction may be achieved. When none is
482 and swap data is stored as normal on the matching swap device.
548 bool "Compressed cache for swap pages (EXPERIMENTAL)"
552 A lightweight compressed cache for swap pages. It takes
555 This can result in a significant I/O reduction on swap device and,
556 in the case where decompressing from RAM is faster that swap device
566 prompt "Compressed cache for swap pages default compressor"
[all …]
Dshmem.c444 pgoff_t index, swp_entry_t swap) in shmem_confirm_swap() argument
446 return xa_load(&mapping->i_pages, index) == swp_to_radix_entry(swap); in shmem_confirm_swap()
1376 swp_entry_t swap; in shmem_writepage() local
1435 swap = get_swap_page(page); in shmem_writepage()
1436 if (!swap.val) in shmem_writepage()
1451 if (add_to_swap_cache(page, swap, in shmem_writepage()
1459 swap_shmem_alloc(swap); in shmem_writepage()
1460 shmem_delete_from_page_cache(page, swp_to_radix_entry(swap)); in shmem_writepage()
1469 put_swap_page(page, swap); in shmem_writepage()
1531 static struct page *shmem_swapin(swp_entry_t swap, gfp_t gfp, in shmem_swapin() argument
[all …]
Dswapfile.c2796 static void *swap_start(struct seq_file *swap, loff_t *pos) in swap_start() argument
2817 static void *swap_next(struct seq_file *swap, void *v, loff_t *pos) in swap_next() argument
2837 static void swap_stop(struct seq_file *swap, void *v) in swap_stop() argument
2842 static int swap_show(struct seq_file *swap, void *v) in swap_show() argument
2850 seq_puts(swap,"Filename\t\t\t\tType\t\tSize\t\tUsed\t\tPriority\n"); in swap_show()
2858 len = seq_file_path(swap, file, " \t\n\\"); in swap_show()
2859 seq_printf(swap, "%*s%s\t%u\t%s%u\t%s%d\n", in swap_show()
3625 swp_entry_t swap = { .val = page_private(page) }; in __page_file_index() local
3626 return swp_offset(swap); in __page_file_index()
Dmadvise.c238 swp_entry_t swap; in force_shm_swapin_readahead() local
245 swap = radix_to_swp_entry(page); in force_shm_swapin_readahead()
246 page = read_swap_cache_async(swap, GFP_HIGHUSER_MOVABLE, in force_shm_swapin_readahead()
DMakefile50 readahead.o swap.o truncate.o vmscan.o shmem.o \
Dkhugepaged.c2042 int present, swap; in khugepaged_scan_file() local
2047 swap = 0; in khugepaged_scan_file()
2055 if (++swap > khugepaged_max_ptes_swap) { in khugepaged_scan_file()
Dvmscan.c933 swp_entry_t swap = { .val = page_private(page) }; in __remove_mapping() local
934 mem_cgroup_swapout(page, swap); in __remove_mapping()
937 __delete_from_swap_cache(page, swap, shadow); in __remove_mapping()
939 put_swap_page(page, swap); in __remove_mapping()
Dslab_common.c895 swap(list[i], list[rand]); in freelist_randomize()
Dmmap.c819 swap(vma, next); in __vma_adjust()
Dslab.c2420 swap(((freelist_idx_t *)page->freelist)[a], in swap_free_obj()
Dpage_alloc.c1958 swap(j, *i); in deferred_init_maxorder()
/mm/damon/
Dvaddr.c141 swap(gap, second_gap); in __damon_va_three_regions()
143 swap(second_gap, first_gap); in __damon_va_three_regions()
154 swap(first_gap, second_gap); in __damon_va_three_regions()