Remove an unneeded trunc_page() in pmap_fault().

Reported by:	alc
MFC with:	r350004
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
markj 2019-07-29 20:31:28 +00:00
parent 18afe5991f
commit 468883bcb0

View File

@ -5790,7 +5790,7 @@ pmap_fault(pmap_t pmap, uint64_t esr, uint64_t far)
(pmap_load(pte) & (ATTR_AP_RW_BIT | ATTR_SW_DBM)) ==
(ATTR_AP(ATTR_AP_RO) | ATTR_SW_DBM)) {
pmap_clear_bits(pte, ATTR_AP_RW_BIT);
pmap_invalidate_page(pmap, trunc_page(far));
pmap_invalidate_page(pmap, far);
rv = KERN_SUCCESS;
}
PMAP_UNLOCK(pmap);