Home
last modified time | relevance | path

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

/haiku/src/system/kernel/vm/
H A DVMAnonymousCache.cpp152 static swap_file* sSwapFileAlloc = NULL; // allocate from here variable
283 if (sSwapFileAlloc == NULL) in swap_slot_alloc()
284 sSwapFileAlloc = sSwapFileList.First(); in swap_slot_alloc()
286 addr = radix_bitmap_alloc(sSwapFileAlloc->bmp, count); in swap_slot_alloc()
288 addr += sSwapFileAlloc->first_slot; in swap_slot_alloc()
293 sSwapFileAlloc = sSwapFileList.GetNext(sSwapFileAlloc); in swap_slot_alloc()
304 if (sSwapFileAlloc->bmp->free_slots in swap_slot_alloc()
305 < (sSwapFileAlloc->last_slot - sSwapFileAlloc->first_slot) / 10) { in swap_slot_alloc()
306 sSwapFileAlloc = sSwapFileList.GetNext(sSwapFileAlloc); in swap_slot_alloc()
1573 sSwapFileAlloc = NULL; in swap_init()