Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 2015 05:49:01 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288912 - head/sys/vm
Message-ID:  <201510060549.t965n1A2002325@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Tue Oct  6 05:49:00 2015
New Revision: 288912
URL: https://svnweb.freebsd.org/changeset/base/288912

Log:
  Exploit r288122 to address a cosmetic issue.  Pages belonging to either
  the kernel or kmem object 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() in kmem_unback() creates the appearance
  that these pages are being enqueued in the inactive queue.  As of r288122,
  we can avoid giving this false impression by passing PQ_NONE.
  
  Submitted by:	kmacy
  Differential Revision:	https://reviews.freebsd.org/D1674

Modified:
  head/sys/vm/vm_kern.c

Modified: head/sys/vm/vm_kern.c
==============================================================================
--- head/sys/vm/vm_kern.c	Tue Oct  6 04:18:48 2015	(r288911)
+++ head/sys/vm/vm_kern.c	Tue Oct  6 05:49:00 2015	(r288912)
@@ -386,7 +386,7 @@ kmem_unback(vm_object_t object, vm_offse
 	VM_OBJECT_WLOCK(object);
 	for (i = 0; i < size; i += PAGE_SIZE) {
 		m = vm_page_lookup(object, OFF_TO_IDX(offset + i));
-		vm_page_unwire(m, PQ_INACTIVE);
+		vm_page_unwire(m, PQ_NONE);
 		vm_page_free(m);
 	}
 	VM_OBJECT_WUNLOCK(object);



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