svn commit: r303516 - head/sys/vm

Mark Johnston markj at FreeBSD.org
Fri Jul 29 21:05:38 UTC 2016


Author: markj
Date: Fri Jul 29 21:05:37 2016
New Revision: 303516
URL: https://svnweb.freebsd.org/changeset/base/303516

Log:
  Use vm_page_undirty() instead of manually setting a page field.
  
  Reviewed by:	alc
  MFC after:	3 days

Modified:
  head/sys/vm/vm_page.c

Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c	Fri Jul 29 21:05:17 2016	(r303515)
+++ head/sys/vm/vm_page.c	Fri Jul 29 21:05:37 2016	(r303516)
@@ -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;
 


More information about the svn-src-all mailing list