Home
last modified time | relevance | path

Searched refs:zeromap (Results 1 – 5 of 5) sorted by relevance

/linux/mm/
H A Dswap.h311 * zeromap status as the starting entry. If is_zeromap is not NULL, in non_swapcache_batch()
312 * it will return the zeromap status of the starting entry. in non_swapcache_batch()
322 first_bit = test_bit(start, sis->zeromap);
329 return find_next_zero_bit(sis->zeromap, end, start) - start; in swap_cluster_lock()
331 return find_next_bit(sis->zeromap, end, start) - start; in swap_cluster_get_and_lock()
H A Dswapfile.c1272 clear_bit(offset + i, si->zeromap); in swap_range_free()
2650 unsigned long *zeromap) in setup_swap_info() argument
2661 si->zeromap = zeromap; in setup_swap_info()
2680 unsigned long *zeromap) in enable_swap_info() argument
2684 setup_swap_info(si, prio, swap_map, cluster_info, zeromap); in enable_swap_info()
2702 setup_swap_info(si, si->prio, si->swap_map, si->cluster_info, si->zeromap); in reinsert_swap_info()
2773 unsigned long *zeromap; in SYSCALL_DEFINE1() local
2865 zeromap = p->zeromap; in SYSCALL_DEFINE1()
2866 p->zeromap = NULL; in SYSCALL_DEFINE1()
2879 kvfree(zeromap); in SYSCALL_DEFINE1()
[all …]
H A Dpage_io.c214 set_bit(swp_offset(entry), sis->zeromap); in swap_zeromap_folio_set()
232 clear_bit(swp_offset(entry), sis->zeromap); in swap_zeromap_folio_clear()
258 * Use a bitmap (zeromap) to avoid doing IO for zero-filled pages. in swap_writeout()
259 * The bits in zeromap are protected by the locked swapcache folio in swap_writeout()
269 * Clear bits this folio occupies in the zeromap to prevent zero data in swap_writeout()
515 * Swapping in a large folio that is partially in the zeromap is not in swap_read_folio_zeromap()
/linux/include/linux/
H A Dswap.h269 unsigned long *zeromap; /* kvmalloc'ed bitmap to track zero pages */
271 unsigned long *zeromap; /* kvmalloc'ed bitmap to track zero pages */ global() member
/linux/Documentation/admin-guide/mm/
H A Duserfaultfd.rst404 to zeromap the faulting address. However, in the latter case, when an