Home
last modified time | relevance | path

Searched refs:SWAP_HAS_CACHE (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/mm/
H A Dswapfile.c114 return ent & ~SWAP_HAS_CACHE; /* may include COUNT_CONTINUED flag */ in swap_count()
873 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
957 READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) { in scan_swap_map_slots()
974 READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) { in scan_swap_map_slots()
1020 map[i] = SWAP_HAS_CACHE; in swap_alloc_cluster()
1107 n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE, in get_swap_pages()
1250 has_cache = count & SWAP_HAS_CACHE; in __swap_entry_free_locked()
1251 count &= ~SWAP_HAS_CACHE; in __swap_entry_free_locked()
1253 if (usage == SWAP_HAS_CACHE) { in __swap_entry_free_locked()
1276 WRITE_ONCE(p->swap_map[offset], SWAP_HAS_CACHE); in __swap_entry_free_locked()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dswap.h187 #define SWAP_HAS_CACHE 0x40 /* Flag page is cached, in first swap_map */ macro