Message ID | 20240125193227.444072-10-david@redhat.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | mm/memory: optimize fork() with PTE-mapped THP | expand |
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 674ed71573a84..c24e29c0b9a48 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1814,6 +1814,6 @@ void set_ptes(struct mm_struct *mm, unsigned long addr, if (--nr == 0) break; ptep++; - pte_val(pteval) += PAGE_SIZE; + pteval = pte_next_pfn(pteval); } }
Let's use our handy helper now that it's available on all archs. Signed-off-by: David Hildenbrand <david@redhat.com> --- arch/arm/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)