Fix harmless oversight marking pages with the wrong state.

While the log of hrev35726 says that unusable page ranges are supposed
to be marked with PAGE_STATE_UNUSED and allocated ones with
PAGE_STATE_WIRED, both actually marked with PAGE_STATE_UNUSED.
This commit is contained in:
Michael Lotz 2011-11-16 11:03:14 +01:00
parent 4200073542
commit 35632c56af

View File

@ -1724,7 +1724,7 @@ mark_page_range_in_use(page_num_t startPage, page_num_t length, bool wired)
VMPageQueue& queue = page->State() == PAGE_STATE_FREE
? sFreePageQueue : sClearPageQueue;
queue.Remove(page);
page->SetState(wired ? PAGE_STATE_UNUSED : PAGE_STATE_UNUSED);
page->SetState(wired ? PAGE_STATE_WIRED : PAGE_STATE_UNUSED);
page->busy = false;
atomic_add(&sUnreservedFreePages, -1);
DEBUG_PAGE_ACCESS_END(page);