Lines Matching refs:SWAP_HAS_CACHE
119 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()
1315 VM_BUG_ON(count != SWAP_HAS_CACHE); in swap_entry_free()
1361 VM_BUG_ON(!(val & SWAP_HAS_CACHE)); in put_swap_folio()
1362 if (val == SWAP_HAS_CACHE) in put_swap_folio()
1376 if (!__swap_entry_free_locked(si, offset + i, SWAP_HAS_CACHE)) { in put_swap_folio()
1609 if (count == SWAP_HAS_CACHE && in free_swap_and_cache()
3293 has_cache = count & SWAP_HAS_CACHE; in __swap_duplicate()
3294 count &= ~SWAP_HAS_CACHE; in __swap_duplicate()
3297 if (usage == SWAP_HAS_CACHE) { in __swap_duplicate()
3301 has_cache = SWAP_HAS_CACHE; in __swap_duplicate()
3362 return __swap_duplicate(entry, SWAP_HAS_CACHE); in swapcache_prepare()