Use trunc_page() instead of rolling my own in pmap_track_page()

This commit is contained in:
Justin Hibbits 2016-12-05 02:27:50 +00:00
parent 1c12e0af23
commit 0a82e6f09a

View File

@ -3483,7 +3483,7 @@ pmap_track_page(pmap_t pmap, vm_offset_t va)
vm_page_t page;
struct pv_entry *pve;
va &= ~PAGE_MASK;
va = trunc_page(va);
pa = pmap_kextract(va);
rw_wlock(&pvh_global_lock);