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
2018-06-13 00:31:37 +09:00
committed by Balazs Gerofi
parent 662895c020
commit de82cf8779
+1 -1
View File
@@ -129,7 +129,7 @@ int hfi1_user_exp_rcv_setup(struct hfi1_filedata *fd, struct hfi1_tid_info *tinf
ret = -EFAULT; ret = -EFAULT;
break; break;
} }
phys = pte_get_phys(ptep); phys = pte_get_phys(ptep) + (vaddr - base_vaddr);
if (!phys_prev) { if (!phys_prev) {
/* first pass */ /* first pass */