Lines Matching refs:has_cache
1187 unsigned char has_cache; in __swap_entry_free_locked() local
1191 has_cache = count & SWAP_HAS_CACHE; in __swap_entry_free_locked()
1195 VM_BUG_ON(!has_cache); in __swap_entry_free_locked()
1196 has_cache = 0; in __swap_entry_free_locked()
1213 usage = count | has_cache; in __swap_entry_free_locked()
3280 unsigned char has_cache; in __swap_duplicate() local
3301 has_cache = count & SWAP_HAS_CACHE; in __swap_duplicate()
3308 if (!has_cache && count) in __swap_duplicate()
3309 has_cache = SWAP_HAS_CACHE; in __swap_duplicate()
3310 else if (has_cache) /* someone else added cache */ in __swap_duplicate()
3315 } else if (count || has_cache) { in __swap_duplicate()
3328 WRITE_ONCE(p->swap_map[offset], count | has_cache); in __swap_duplicate()