Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2019 17:25:23 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r348638 - stable/12/sys/riscv/riscv
Message-ID:  <201906041725.x54HPNh7097721@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Jun  4 17:25:22 2019
New Revision: 348638
URL: https://svnweb.freebsd.org/changeset/base/348638

Log:
  MFC r342764:
  Clear PGA_WRITEABLE in pmap_remove_pages().

Modified:
  stable/12/sys/riscv/riscv/pmap.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/riscv/riscv/pmap.c
==============================================================================
--- stable/12/sys/riscv/riscv/pmap.c	Tue Jun  4 17:24:52 2019	(r348637)
+++ stable/12/sys/riscv/riscv/pmap.c	Tue Jun  4 17:25:22 2019	(r348638)
@@ -2745,6 +2745,9 @@ pmap_remove_pages(pmap_t pmap)
 				pmap_resident_count_dec(pmap, 1);
 				TAILQ_REMOVE(&m->md.pv_list, pv, pv_next);
 				m->md.pv_gen++;
+				if (TAILQ_EMPTY(&m->md.pv_list) &&
+				    (m->aflags & PGA_WRITEABLE) != 0)
+					vm_page_aflag_clear(m, PGA_WRITEABLE);
 
 				pmap_unuse_l3(pmap, pv->pv_va, ptepde, &free);
 				freed++;



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