Lines Matching refs:SWAP_HAS_CACHE
117 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()
1191 has_cache = count & SWAP_HAS_CACHE; in __swap_entry_free_locked()
1192 count &= ~SWAP_HAS_CACHE; in __swap_entry_free_locked()
1194 if (usage == SWAP_HAS_CACHE) { in __swap_entry_free_locked()
1217 WRITE_ONCE(p->swap_map[offset], SWAP_HAS_CACHE); in __swap_entry_free_locked()
1310 VM_BUG_ON(count != SWAP_HAS_CACHE); in swap_entry_free()
1356 VM_BUG_ON(!(val & SWAP_HAS_CACHE)); in put_swap_folio()
1357 if (val == SWAP_HAS_CACHE) in put_swap_folio()
1371 if (!__swap_entry_free_locked(si, offset + i, SWAP_HAS_CACHE)) { in put_swap_folio()
1628 if (count == SWAP_HAS_CACHE && in free_swap_and_cache()
3301 has_cache = count & SWAP_HAS_CACHE; in __swap_duplicate()
3302 count &= ~SWAP_HAS_CACHE; in __swap_duplicate()
3305 if (usage == SWAP_HAS_CACHE) { in __swap_duplicate()
3309 has_cache = SWAP_HAS_CACHE; in __swap_duplicate()
3371 return __swap_duplicate(entry, SWAP_HAS_CACHE); in swapcache_prepare()