Home
last modified time | relevance | path

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

/linux-6.6.21/mm/
Dswapfile.c468 memset(si->swap_map + idx * SWAPFILE_CLUSTER, in swap_cluster_schedule_discard()
505 memset(si->swap_map + idx * SWAPFILE_CLUSTER, in swap_do_scheduled_discard()
664 if (!si->swap_map[tmp]) in scan_swap_map_try_ssd_cluster()
786 if (data_race(!si->swap_map[offset])) { in swap_offset_available_and_locked()
791 if (vm_swap_full() && READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) { in swap_offset_available_and_locked()
857 if (si->swap_map[offset]) in scan_swap_map_slots()
897 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
909 if (si->swap_map[offset]) { in scan_swap_map_slots()
916 WRITE_ONCE(si->swap_map[offset], usage); in scan_swap_map_slots()
943 } else if (si->cluster_nr && !si->swap_map[++offset]) { in scan_swap_map_slots()
[all …]
/linux-6.6.21/include/linux/
Dswap.h289 unsigned char *swap_map; /* vmalloc'ed array of usage counts */ member
/linux-6.6.21/Documentation/admin-guide/mm/
Dzswap.rst84 in the swap_map goes to 0) the swap code calls the zswap invalidate function