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

Reviewed by:	alc
MFC after:	3 days
This commit is contained in:
Mark Johnston 2016-07-29 21:05:37 +00:00
parent 2dc39caa91
commit 897d0c6617

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;