Lines Matching refs:has_cache
1246 unsigned char has_cache; in __swap_entry_free_locked() local
1250 has_cache = count & SWAP_HAS_CACHE; in __swap_entry_free_locked()
1254 VM_BUG_ON(!has_cache); in __swap_entry_free_locked()
1255 has_cache = 0; in __swap_entry_free_locked()
1272 usage = count | has_cache; in __swap_entry_free_locked()
3491 unsigned char has_cache; in __swap_duplicate() local
3512 has_cache = count & SWAP_HAS_CACHE; in __swap_duplicate()
3519 if (!has_cache && count) in __swap_duplicate()
3520 has_cache = SWAP_HAS_CACHE; in __swap_duplicate()
3521 else if (has_cache) /* someone else added cache */ in __swap_duplicate()
3526 } else if (count || has_cache) { in __swap_duplicate()
3539 WRITE_ONCE(p->swap_map[offset], count | has_cache); in __swap_duplicate()