1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

In pmap_remove_pages(), when clearing a pte, update the corresponding

page's dirty mask.

Reviewed by:	gallatin@
This commit is contained in:
Alan Cox 2004-07-14 03:05:19 +00:00
parent dd094c943d
commit 8b6587f4c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132129

View File

@ -2227,6 +2227,10 @@ pmap_remove_pages(pmap, sva, eva)
pv->pv_pmap->pm_stats.resident_count--;
if ((tpte & PG_FOW) == 0)
if (pmap_track_modified(pv->pv_va))
vm_page_dirty(m);
npv = TAILQ_NEXT(pv, pv_plist);
TAILQ_REMOVE(&pv->pv_pmap->pm_pvlist, pv, pv_plist);