Lines Matching refs:SWAP_HAS_CACHE
120 return ent & ~SWAP_HAS_CACHE; /* may include COUNT_CONTINUED flag */
817 if (vm_swap_full() && READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) {
949 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) {
1115 n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE,
1208 has_cache = count & SWAP_HAS_CACHE;
1209 count &= ~SWAP_HAS_CACHE;
1211 if (usage == SWAP_HAS_CACHE) {
1234 WRITE_ONCE(p->swap_map[offset], SWAP_HAS_CACHE);
1337 VM_BUG_ON(count != SWAP_HAS_CACHE);
1382 VM_BUG_ON(!(val & SWAP_HAS_CACHE));
1383 if (val == SWAP_HAS_CACHE)
1396 if (!__swap_entry_free_locked(si, offset + i, SWAP_HAS_CACHE)) {
1634 if (count == SWAP_HAS_CACHE)
1659 if (READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) {
3377 has_cache = count & SWAP_HAS_CACHE;
3378 count &= ~SWAP_HAS_CACHE;
3381 if (usage == SWAP_HAS_CACHE) {
3383 /* set SWAP_HAS_CACHE if there is no cache and entry is used */
3385 has_cache = SWAP_HAS_CACHE;
3447 return __swap_duplicate(entry, SWAP_HAS_CACHE);
3457 usage = __swap_entry_free_locked(si, offset, SWAP_HAS_CACHE);