Lines Matching refs:SWAP_HAS_CACHE
91 return ent & ~SWAP_HAS_CACHE; /* may include SWAP_HAS_CONT flag */ in swap_count()
567 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map()
607 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map()
622 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map()
674 offset = scan_swap_map(si, SWAP_HAS_CACHE); in get_swap_page()
769 has_cache = count & SWAP_HAS_CACHE; in swap_entry_free()
770 count &= ~SWAP_HAS_CACHE; in swap_entry_free()
772 if (usage == SWAP_HAS_CACHE) { in swap_entry_free()
852 swap_entry_free(p, entry, SWAP_HAS_CACHE); in swapcache_free()
995 if (swap_entry_free(p, entry, 1) == SWAP_HAS_CACHE) { in free_swap_and_cache()
2655 has_cache = count & SWAP_HAS_CACHE; in __swap_duplicate()
2656 count &= ~SWAP_HAS_CACHE; in __swap_duplicate()
2659 if (usage == SWAP_HAS_CACHE) { in __swap_duplicate()
2663 has_cache = SWAP_HAS_CACHE; in __swap_duplicate()
2729 return __swap_duplicate(entry, SWAP_HAS_CACHE); in swapcache_prepare()
2798 count = si->swap_map[offset] & ~SWAP_HAS_CACHE; in add_swap_count_continuation()