diff options
author | alc <alc@FreeBSD.org> | 2004-07-14 03:05:19 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-07-14 03:05:19 +0000 |
commit | 5828eec16dcc869fdfdda0c380dfa3d72ab14f18 (patch) | |
tree | d552d0a4ee34cc05ef6292e8ba491183ce820063 /sys | |
parent | d2c424e30cfecd22fea38aa7e3cdce9d030657cd (diff) | |
download | FreeBSD-src-5828eec16dcc869fdfdda0c380dfa3d72ab14f18.zip FreeBSD-src-5828eec16dcc869fdfdda0c380dfa3d72ab14f18.tar.gz |
In pmap_remove_pages(), when clearing a pte, update the corresponding
page's dirty mask.
Reviewed by: gallatin@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/alpha/alpha/pmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index c8624cd..45ab2dd 100644 --- a/sys/alpha/alpha/pmap.c +++ b/sys/alpha/alpha/pmap.c @@ -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); |