Author: markj
Date: Sun Aug 14 19:01:32 2016
New Revision: 304093
URL: https://svnweb.freebsd.org/changeset/base/304093

Log:
  MFC r303516
  Use vm_page_undirty() instead of manually setting a page field.

Modified:
  stable/11/sys/vm/vm_page.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/vm_page.c
==============================================================================
--- stable/11/sys/vm/vm_page.c  Sun Aug 14 19:01:15 2016        (r304092)
+++ stable/11/sys/vm/vm_page.c  Sun Aug 14 19:01:32 2016        (r304093)
@@ -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;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to