swap_slot_alloc
while ((slotIndex = swap_slot_alloc(n)) == SWAP_SLOT_NONE && n >= 2)
slotIndex = swap_slot_alloc(1);