Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2016 21:05:37 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303516 - head/sys/vm
Message-ID:  <201607292105.u6TL5bPs069205@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607292105.u6TL5bPs069205>