Lines Matching refs:has_cache
1201 unsigned char has_cache; in __swap_entry_free_locked() local
1205 has_cache = count & SWAP_HAS_CACHE; in __swap_entry_free_locked()
1209 VM_BUG_ON(!has_cache); in __swap_entry_free_locked()
1210 has_cache = 0; in __swap_entry_free_locked()
1227 usage = count | has_cache; in __swap_entry_free_locked()
3430 unsigned char has_cache; in __swap_duplicate() local
3451 has_cache = count & SWAP_HAS_CACHE; in __swap_duplicate()
3458 if (!has_cache && count) in __swap_duplicate()
3459 has_cache = SWAP_HAS_CACHE; in __swap_duplicate()
3460 else if (has_cache) /* someone else added cache */ in __swap_duplicate()
3465 } else if (count || has_cache) { in __swap_duplicate()
3478 WRITE_ONCE(p->swap_map[offset], count | has_cache); in __swap_duplicate()