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.

MFC after:	3 days
This commit is contained in:
Alan Cox 2019-06-15 17:26:42 +00:00
parent 35c12dd688
commit 3b97569c31

View File

@ -4067,7 +4067,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);