mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Change vm_object_page_remove() such that it clears the page's dirty bits
when it invalidates the page. Suggested by: tegge
This commit is contained in:
parent
60a8b6022d
commit
a28042d1e3
1 changed files with 3 additions and 1 deletions
|
|
@ -1902,8 +1902,10 @@ again:
|
|||
pmap_remove_all(p);
|
||||
/* Account for removal of managed, wired mappings. */
|
||||
p->wire_count -= wirings;
|
||||
if (!clean_only)
|
||||
if (!clean_only) {
|
||||
p->valid = 0;
|
||||
vm_page_undirty(p);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (vm_page_sleep_if_busy(p, TRUE, "vmopar"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue