Home
last modified time | relevance | path

Searched refs:SWAP_HAS_CACHE (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/mm/
H A Dswapfile.c119 return ent & ~SWAP_HAS_CACHE; /* may include COUNT_CONTINUED flag */ in swap_count()
791 if (vm_swap_full() && READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) { in swap_offset_available_and_locked()
897 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
1026 memset(si->swap_map + offset, SWAP_HAS_CACHE, SWAPFILE_CLUSTER); in swap_alloc_cluster()
1097 n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE, in get_swap_pages()
1190 has_cache = count & SWAP_HAS_CACHE; in __swap_entry_free_locked()
1191 count &= ~SWAP_HAS_CACHE; in __swap_entry_free_locked()
1193 if (usage == SWAP_HAS_CACHE) { in __swap_entry_free_locked()
1216 WRITE_ONCE(p->swap_map[offset], SWAP_HAS_CACHE); in __swap_entry_free_locked()
1320 VM_BUG_ON(count != SWAP_HAS_CACHE); in swap_entry_free()
[all …]
/openbmc/linux/include/linux/
H A Dswap.h229 #define SWAP_HAS_CACHE 0x40 /* Flag page is cached, in first swap_map */ macro