diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index fd23777a0e53..e138cbc97ebb 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -3187,10 +3187,6 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_prot_t access, vm_page_t m, if (mpte) mpte->wire_count--; - /* - * We might be turning off write access to the page, - * so we go ahead and sense modify status. - */ if (origpte & PG_MANAGED) { om = m; pa |= PG_MANAGED; diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 9dbab4e40130..1316eb8b9b51 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -3323,10 +3323,6 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_prot_t access, vm_page_t m, if (mpte) mpte->wire_count--; - /* - * We might be turning off write access to the page, - * so we go ahead and sense modify status. - */ if (origpte & PG_MANAGED) { om = m; pa |= PG_MANAGED; diff --git a/sys/i386/xen/pmap.c b/sys/i386/xen/pmap.c index 67bbd27ccebd..1a3a9d542462 100644 --- a/sys/i386/xen/pmap.c +++ b/sys/i386/xen/pmap.c @@ -2737,10 +2737,6 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_prot_t access, vm_page_t m, if (mpte) mpte->wire_count--; - /* - * We might be turning off write access to the page, - * so we go ahead and sense modify status. - */ if (origpte & PG_MANAGED) { om = m; pa |= PG_MANAGED; diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index 54824a4f91ba..523ec8bff21c 100644 --- a/sys/mips/mips/pmap.c +++ b/sys/mips/mips/pmap.c @@ -1801,10 +1801,6 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_prot_t access, vm_page_t m, if (mpte) mpte->wire_count--; - /* - * We might be turning off write access to the page, so we - * go ahead and sense modify status. - */ if (page_is_managed(opa)) { om = m; } diff --git a/sys/sun4v/sun4v/pmap.c b/sys/sun4v/sun4v/pmap.c index 8044048ed2ce..48cc81c8e1a0 100644 --- a/sys/sun4v/sun4v/pmap.c +++ b/sys/sun4v/sun4v/pmap.c @@ -1133,10 +1133,6 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_prot_t access, vm_page_t m, else if (!wired && (otte_data & VTD_WIRED)) pmap->pm_stats.wired_count--; - /* - * We might be turning off write access to the page, - * so we go ahead and sense modify status. - */ if (otte_data & VTD_MANAGED) { om = m; tte_data |= VTD_MANAGED;