svn commit: r304092 - stable/10/sys/vm

Mark Johnston markj at FreeBSD.org
Sun Aug 14 19:01:16 UTC 2016


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

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

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

Modified: stable/10/sys/vm/vm_page.c
==============================================================================
--- stable/10/sys/vm/vm_page.c	Sun Aug 14 18:59:57 2016	(r304091)
+++ stable/10/sys/vm/vm_page.c	Sun Aug 14 19:01:15 2016	(r304092)
@@ -2651,7 +2651,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;
 


More information about the svn-src-stable-10 mailing list