Spotted this while reading through page code. The usage_count would be set for
wrong pages when allocating a page run unless the run started at page 0 as the start offset was missing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26245 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1799,7 +1799,7 @@ vm_page_allocate_page_run(int pageState, addr_t length)
|
|||||||
sPages[start + i].is_cleared
|
sPages[start + i].is_cleared
|
||||||
= sPages[start + i].state == PAGE_STATE_CLEAR;
|
= sPages[start + i].state == PAGE_STATE_CLEAR;
|
||||||
set_page_state_nolock(&sPages[start + i], PAGE_STATE_BUSY);
|
set_page_state_nolock(&sPages[start + i], PAGE_STATE_BUSY);
|
||||||
sPages[i].usage_count = 2;
|
sPages[start + i].usage_count = 2;
|
||||||
}
|
}
|
||||||
firstPage = &sPages[start];
|
firstPage = &sPages[start];
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user