diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 4872472cd1fa..c37ae13b68c3 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -3397,7 +3397,7 @@ vm_page_advise(vm_page_t m, int advice) * But we do make the page as freeable as we can without * actually taking the step of unmapping it. */ - m->dirty = 0; + vm_page_undirty(m); else if (advice != MADV_DONTNEED) return;