Lines Matching refs:SWAP_HAS_CACHE
113 return ent & ~SWAP_HAS_CACHE; /* may include COUNT_CONTINUED flag */ in swap_count()
827 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
897 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
912 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
956 map[i] = SWAP_HAS_CACHE; in swap_alloc_cluster()
1044 n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE, in get_swap_pages()
1186 has_cache = count & SWAP_HAS_CACHE; in __swap_entry_free_locked()
1187 count &= ~SWAP_HAS_CACHE; in __swap_entry_free_locked()
1189 if (usage == SWAP_HAS_CACHE) { in __swap_entry_free_locked()
1209 p->swap_map[offset] = usage ? : SWAP_HAS_CACHE; in __swap_entry_free_locked()
1300 VM_BUG_ON(count != SWAP_HAS_CACHE); in swap_entry_free()
1346 VM_BUG_ON(!(val & SWAP_HAS_CACHE)); in put_swap_page()
1347 if (val == SWAP_HAS_CACHE) in put_swap_page()
1361 if (!__swap_entry_free_locked(si, offset + i, SWAP_HAS_CACHE)) { in put_swap_page()
1743 if (count == SWAP_HAS_CACHE && in free_swap_and_cache()
3405 has_cache = count & SWAP_HAS_CACHE; in __swap_duplicate()
3406 count &= ~SWAP_HAS_CACHE; in __swap_duplicate()
3409 if (usage == SWAP_HAS_CACHE) { in __swap_duplicate()
3413 has_cache = SWAP_HAS_CACHE; in __swap_duplicate()
3477 return __swap_duplicate(entry, SWAP_HAS_CACHE); in swapcache_prepare()
3553 count = si->swap_map[offset] & ~SWAP_HAS_CACHE; in add_swap_count_continuation()