mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Eliminate redundant setting of a page's valid bits and pointless clearing
of the same page's dirty bits.
This commit is contained in:
parent
b4d722d936
commit
e2d0be0172
1 changed files with 2 additions and 2 deletions
|
|
@ -606,8 +606,8 @@ out:
|
|||
VM_OBJECT_LOCK(vobj);
|
||||
vm_page_lock_queues();
|
||||
if (error == 0) {
|
||||
vm_page_set_validclean(tpg, offset, tlen);
|
||||
vm_page_zero_invalid(tpg, TRUE);
|
||||
KASSERT(tpg->valid == VM_PAGE_BITS_ALL,
|
||||
("parts of tpg invalid"));
|
||||
vm_page_dirty(tpg);
|
||||
}
|
||||
vm_page_unwire(tpg, TRUE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue