Use vm_page_undirty() instead of manually setting a page field.
Reviewed by: alc MFC after: 3 days
This commit is contained in:
parent
5f4bf94d28
commit
8a487f27d2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user