Skip to content

Commit

Permalink
Merge pull request hpc#46 from tvegas1/pte_offset_kernel
Browse files Browse the repository at this point in the history
KERNEL: Use pte offset kernel function for mapped pages
  • Loading branch information
tvegas1 authored Oct 2, 2023
2 parents e39bb4d + f642033 commit 9c9a132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/xpmem_pfn.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ xpmem_vaddr_to_pte_offset(struct mm_struct *mm, u64 vaddr, u64 *offset)
}
#endif

pte = pte_offset_map(pmd, vaddr);
pte = pte_offset_kernel(pmd, vaddr);
if (!pte_present(*pte))
return NULL;

Expand Down Expand Up @@ -218,7 +218,7 @@ xpmem_vaddr_to_pte_size(struct mm_struct *mm, u64 vaddr, u64 *size)
return NULL;
}

pte = pte_offset_map(pmd, vaddr);
pte = pte_offset_kernel(pmd, vaddr);
if (!pte_present(*pte)) {
*size = PAGE_SIZE;
return NULL;
Expand Down

0 comments on commit 9c9a132

Please sign in to comment.