Home
last modified time | relevance | path

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

/linux-6.3-rc2/include/linux/
A Dswap_slots.h9 #define SWAP_SLOTS_CACHE_SIZE SWAP_BATCH macro
10 #define THRESHOLD_ACTIVATE_SWAP_SLOTS_CACHE (5*SWAP_SLOTS_CACHE_SIZE)
11 #define THRESHOLD_DEACTIVATE_SWAP_SLOTS_CACHE (2*SWAP_SLOTS_CACHE_SIZE)
/linux-6.3-rc2/mm/
A Dswap_slots.c123 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
128 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
266 cache->nr = get_swap_pages(SWAP_SLOTS_CACHE_SIZE, in refill_swap_slots_cache()
284 if (cache->n_ret >= SWAP_SLOTS_CACHE_SIZE) { in free_swap_slot()

Completed in 3 milliseconds