Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2019 21:32:19 +0000 (UTC)
From:      Alan Cox <alc@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: r352368 - stable/12/sys/arm64/arm64
Message-ID:  <201909152132.x8FLWJhQ084452@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sun Sep 15 21:32:19 2019
New Revision: 352368
URL: https://svnweb.freebsd.org/changeset/base/352368

Log:
  MFC r349070
    Previously, when pmap_remove_pages() destroyed a dirty superpage mapping,
    it only called vm_page_dirty() on the first of the superpage's constituent
    4KB pages.  This revision corrects that error, calling vm_page_dirty() on
    all of superpage's constituent 4KB pages.

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

Modified: stable/12/sys/arm64/arm64/pmap.c
==============================================================================
--- stable/12/sys/arm64/arm64/pmap.c	Sun Sep 15 21:27:14 2019	(r352367)
+++ stable/12/sys/arm64/arm64/pmap.c	Sun Sep 15 21:32:19 2019	(r352368)
@@ -4055,7 +4055,7 @@ pmap_remove_pages(pmap_t pmap)
 					switch (lvl) {
 					case 1:
 						for (mt = m; mt < &m[L2_SIZE / PAGE_SIZE]; mt++)
-							vm_page_dirty(m);
+							vm_page_dirty(mt);
 						break;
 					case 2:
 						vm_page_dirty(m);



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