mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
In pmap_remove_pages(), when clearing a pte, update the corresponding
page's dirty mask. Reviewed by: gallatin@
This commit is contained in:
parent
dd094c943d
commit
8b6587f4c5
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue