svn commit: r303243 - head/sys/vm

Mark Johnston markj at FreeBSD.org
Sat Jul 23 21:02:37 UTC 2016


Author: markj
Date: Sat Jul 23 21:02:36 2016
New Revision: 303243
URL: https://svnweb.freebsd.org/changeset/base/303243

Log:
  Update a comment in vm_page_advise() to match behaviour after r290529.
  
  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	Sat Jul 23 20:50:47 2016	(r303242)
+++ head/sys/vm/vm_page.c	Sat Jul 23 21:02:36 2016	(r303243)
@@ -3411,9 +3411,11 @@ vm_page_advise(vm_page_t m, int advice)
 		vm_page_dirty(m);
 
 	/*
-	 * Place clean pages at the head of the inactive queue rather than the
-	 * tail, thus defeating the queue's LRU operation and ensuring that the
-	 * page will be reused quickly.
+	 * Place clean pages near the head of the inactive queue rather than
+	 * the tail, thus defeating the queue's LRU operation and ensuring that
+	 * the page will be reused quickly.  Dirty pages are given a chance to
+	 * cycle once through the inactive queue before becoming eligible for
+	 * laundering.
 	 */
 	_vm_page_deactivate(m, m->dirty == 0);
 }


More information about the svn-src-all mailing list