From 897d0c6617f71ebfe94580c52d9a8f52d38f2a9d Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 29 Jul 2016 21:05:37 +0000 Subject: [PATCH] Use vm_page_undirty() instead of manually setting a page field. Reviewed by: alc MFC after: 3 days --- sys/vm/vm_page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 4872472cd1f..c37ae13b68c 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;