Lines Matching refs:SWAP_HAS_CACHE
103 return ent & ~SWAP_HAS_CACHE; /* may include COUNT_CONTINUED flag */ in swap_count()
779 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
849 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
864 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
908 map[i] = SWAP_HAS_CACHE; in swap_alloc_cluster()
995 n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE, in get_swap_pages()
1135 has_cache = count & SWAP_HAS_CACHE; in __swap_entry_free_locked()
1136 count &= ~SWAP_HAS_CACHE; in __swap_entry_free_locked()
1138 if (usage == SWAP_HAS_CACHE) { in __swap_entry_free_locked()
1158 p->swap_map[offset] = usage ? : SWAP_HAS_CACHE; in __swap_entry_free_locked()
1184 VM_BUG_ON(count != SWAP_HAS_CACHE); in swap_entry_free()
1232 VM_BUG_ON(!(val & SWAP_HAS_CACHE)); in put_swap_page()
1233 if (val == SWAP_HAS_CACHE) in put_swap_page()
1250 if (!__swap_entry_free_locked(si, offset + i, SWAP_HAS_CACHE)) { in put_swap_page()
1624 if (count == SWAP_HAS_CACHE && in free_swap_and_cache()
3395 has_cache = count & SWAP_HAS_CACHE; in __swap_duplicate()
3396 count &= ~SWAP_HAS_CACHE; in __swap_duplicate()
3399 if (usage == SWAP_HAS_CACHE) { in __swap_duplicate()
3403 has_cache = SWAP_HAS_CACHE; in __swap_duplicate()
3469 return __swap_duplicate(entry, SWAP_HAS_CACHE); in swapcache_prepare()
3544 count = si->swap_map[offset] & ~SWAP_HAS_CACHE; in add_swap_count_continuation()