diff options
-rw-r--r-- | sys/vm/vm_object.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 34332f6..d98f944 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -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")) |