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:
parent
4200073542
commit
35632c56af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user