SWAP_SLOT_NONE
|| _SwapBlockGetAddress(pageIndex) != SWAP_SLOT_NONE)
swap->swap_slots[i] = SWAP_SLOT_NONE;
swap->swap_slots[blockIndex++] = SWAP_SLOT_NONE;
swap_addr_t slotIndex = SWAP_SLOT_NONE;
if (swapBlock->swap_slots[i] != SWAP_SLOT_NONE) {
if (sourceSlotIndex == SWAP_SLOT_NONE)
&& swapBlock->swap_slots[i] != SWAP_SLOT_NONE)
sourceSwapBlock->swap_slots[i] = SWAP_SLOT_NONE;
if (sourceSwapBlock->swap_slots[i] != SWAP_SLOT_NONE)
if (slotIndex == SWAP_SLOT_NONE)
return SWAP_SLOT_NONE;
return SWAP_SLOT_NONE;
swap_addr_t j, addr = SWAP_SLOT_NONE;
if (addr != SWAP_SLOT_NONE) {
return SWAP_SLOT_NONE;
if (slotIndex == SWAP_SLOT_NONE)
if (slotIndex == SWAP_SLOT_NONE)
swapBlock->swap_slots[blockIndex] = SWAP_SLOT_NONE;
swapBlock->swap_slots[i] = SWAP_SLOT_NONE;
if (slotIndex == SWAP_SLOT_NONE)
ASSERT(swapBlock->swap_slots[blockIndex] == SWAP_SLOT_NONE);
sourceSwapBlock->swap_slots[sourceBlockIndex] = SWAP_SLOT_NONE;
if (_SwapBlockGetAddress(offset >> PAGE_SHIFT) != SWAP_SLOT_NONE)
return swap->swap_slots[pageIndex & SWAP_BLOCK_MASK] != SWAP_SLOT_NONE;
if (slotIndex != SWAP_SLOT_NONE) {
while ((slotIndex = swap_slot_alloc(n)) == SWAP_SLOT_NONE && n >= 2)
if (slotIndex == SWAP_SLOT_NONE)
bool newSlot = slotIndex == SWAP_SLOT_NONE;