Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2019 03:33: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: r349183 - head/sys/arm64/arm64
Message-ID:  <201906190333.x5J3X1dc009381@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Wed Jun 19 03:33:00 2019
New Revision: 349183
URL: https://svnweb.freebsd.org/changeset/base/349183

Log:
  Correct an error in r349122.  pmap_unwire() should update the pmap's wired
  count, not its resident count.
  
  X-MFC with:	r349122

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

Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c	Wed Jun 19 01:28:13 2019	(r349182)
+++ head/sys/arm64/arm64/pmap.c	Wed Jun 19 03:33:00 2019	(r349183)
@@ -3777,8 +3777,8 @@ pmap_unwire(pmap_t pmap, vm_offset_t sva, vm_offset_t 
 			 */
 			if (sva + L2_SIZE == va_next && eva >= va_next) {
 				atomic_clear_64(l2, ATTR_SW_WIRED);
-				pmap_resident_count_dec(pmap, L2_SIZE /
-				    PAGE_SIZE);
+				pmap->pm_stats.wired_count -= L2_SIZE /
+				    PAGE_SIZE;
 				continue;
 			} else if (pmap_demote_l2(pmap, l2, sva) == NULL)
 				panic("pmap_unwire: demotion failed");



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