1de195dd0e
We used to determine the number of page table entries to set for a NAPOT
hugepage by using the pte value which actually fails when the pte to set
is a swap entry.
So take advantage of a recent fix for arm64 reported in [1] which
introduces the size of the mapping as an argument of set_huge_pte_at(): we
can then use this size to compute the number of page table entries to set
for a NAPOT region.
Link: https://lkml.kernel.org/r/20230928151846.8229-3-alexghiti@rivosinc.com
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
cacheflush.c | ||
context.c | ||
dma-noncoherent.c | ||
extable.c | ||
fault.c | ||
hugetlbpage.c | ||
init.c | ||
kasan_init.c | ||
pageattr.c | ||
pgtable.c | ||
physaddr.c | ||
pmem.c | ||
ptdump.c | ||
tlbflush.c |