kernel/vm: Clear busy_io along with the other page flags.
Change-Id: I796e6d01678e46eda9815c1c290b56975b6dbdfe Reviewed-on: https://review.haiku-os.org/c/haiku/+/10625 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
5eaf967479
commit
b37e0a513d
@@ -3695,9 +3695,10 @@ vm_page_allocate_page(vm_page_reservation* reservation, uint32 flags)
|
|||||||
int oldPageState = page->State();
|
int oldPageState = page->State();
|
||||||
page->SetState(pageState);
|
page->SetState(pageState);
|
||||||
page->busy = (flags & VM_PAGE_ALLOC_BUSY) != 0;
|
page->busy = (flags & VM_PAGE_ALLOC_BUSY) != 0;
|
||||||
page->usage_count = 0;
|
page->busy_io = false;
|
||||||
page->accessed = false;
|
page->accessed = false;
|
||||||
page->modified = false;
|
page->modified = false;
|
||||||
|
page->usage_count = 0;
|
||||||
|
|
||||||
locker.Unlock();
|
locker.Unlock();
|
||||||
|
|
||||||
@@ -3813,9 +3814,10 @@ allocate_page_run(page_num_t start, page_num_t length, uint32 flags,
|
|||||||
if (pageAllocated) {
|
if (pageAllocated) {
|
||||||
page.SetState(flags & VM_PAGE_ALLOC_STATE);
|
page.SetState(flags & VM_PAGE_ALLOC_STATE);
|
||||||
page.busy = (flags & VM_PAGE_ALLOC_BUSY) != 0;
|
page.busy = (flags & VM_PAGE_ALLOC_BUSY) != 0;
|
||||||
page.usage_count = 0;
|
page.busy_io = false;
|
||||||
page.accessed = false;
|
page.accessed = false;
|
||||||
page.modified = false;
|
page.modified = false;
|
||||||
|
page.usage_count = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3856,9 +3858,10 @@ allocate_page_run(page_num_t start, page_num_t length, uint32 flags,
|
|||||||
|
|
||||||
page.SetState(flags & VM_PAGE_ALLOC_STATE);
|
page.SetState(flags & VM_PAGE_ALLOC_STATE);
|
||||||
page.busy = (flags & VM_PAGE_ALLOC_BUSY) != 0;
|
page.busy = (flags & VM_PAGE_ALLOC_BUSY) != 0;
|
||||||
page.usage_count = 0;
|
page.busy_io = false;
|
||||||
page.accessed = false;
|
page.accessed = false;
|
||||||
page.modified = false;
|
page.modified = false;
|
||||||
|
page.usage_count = 0;
|
||||||
|
|
||||||
freePages.InsertBefore(freePage, &page);
|
freePages.InsertBefore(freePage, &page);
|
||||||
freedCachedPages++;
|
freedCachedPages++;
|
||||||
|
|||||||
Reference in New Issue
Block a user