Use trunc_page() instead of rolling my own in pmap_track_page()
This commit is contained in:
parent
1c12e0af23
commit
0a82e6f09a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user