Skip to content

Commit

Permalink
vm_phys: Avoid vm_phys_seg_paddr_to_vm_page() in vm_phys_find_range()
Browse files Browse the repository at this point in the history
  • Loading branch information
markjdb committed Jun 14, 2024
1 parent aede0d3 commit a8b2814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/vm/vm_phys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ vm_phys_find_range(vm_page_t bounds[], int segind, int domain,
vm_phys_lazy_init_domain(domain, false);
#endif
bounds[0] = vm_phys_seg_paddr_to_vm_page(seg, pa_start);
bounds[1] = vm_phys_seg_paddr_to_vm_page(seg, pa_end);
bounds[1] = &seg->first_page[atop(pa - seg->start)];
return (seg - vm_phys_segs);
}
return (-1);
Expand Down

0 comments on commit a8b2814

Please sign in to comment.