Use vm_page_undirty() instead of manually setting a page field.

Reviewed by:	alc
MFC after:	3 days
This commit is contained in:
markj 2016-07-29 21:05:37 +00:00
parent 5f4bf94d28
commit 8a487f27d2

View File

@ -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;