svn commit: r323785 - head/sys/riscv/riscv

Alan Cox alc at FreeBSD.org
Wed Sep 20 04:19:50 UTC 2017


Author: alc
Date: Wed Sep 20 04:19:49 2017
New Revision: 323785
URL: https://svnweb.freebsd.org/changeset/base/323785

Log:
  Sync with amd64/arm/arm64/i386/mips pmap change r288256:
  
  Exploit r288122 to address a cosmetic issue.  Since PV chunk pages don't
  belong to a vm object, they can't be paged out.  Since they can't be paged
  out, they are never enqueued in a paging queue.  Nonetheless, passing
  PQ_INACTIVE to vm_page_unwire() creates the appearance that these pages
  are being enqueued in the inactive queue.  As of r288122, we can avoid
  this false impression by passing PQ_NONE.
  
  MFC after:	1 week

Modified:
  head/sys/riscv/riscv/pmap.c

Modified: head/sys/riscv/riscv/pmap.c
==============================================================================
--- head/sys/riscv/riscv/pmap.c	Tue Sep 19 23:41:55 2017	(r323784)
+++ head/sys/riscv/riscv/pmap.c	Wed Sep 20 04:19:49 2017	(r323785)
@@ -1614,7 +1614,7 @@ free_pv_chunk(struct pv_chunk *pc)
 #if 0 /* TODO: For minidump */
 	dump_drop_page(m->phys_addr);
 #endif
-	vm_page_unwire(m, PQ_INACTIVE);
+	vm_page_unwire(m, PQ_NONE);
 	vm_page_free(m);
 }
 


More information about the svn-src-all mailing list