hfi1/user_exp_rcv/setup: keep track of position within page

ihk_mc_pt_lookup_pte + pte_get_phys will get us the physical address
for the start of the page we're looking at.
Re-offset it by position within buffer.
This commit is contained in:
Dominique Martinet
2017-09-22 12:50:01 +09:00
committed by Balazs Gerofi
parent 662895c020
commit de82cf8779

View File

@ -129,7 +129,7 @@ int hfi1_user_exp_rcv_setup(struct hfi1_filedata *fd, struct hfi1_tid_info *tinf
ret = -EFAULT;
break;
}
phys = pte_get_phys(ptep);
phys = pte_get_phys(ptep) + (vaddr - base_vaddr);
if (!phys_prev) {
/* first pass */