[PATCH v3 1/5] mm: Optimize mprotect() by batch-skipping PTEs
David Hildenbrand
david at redhat.com
Thu May 22 00:13:32 PDT 2025
>> ... likely with a better function name,
>
>
> I want to be able to reuse the folio from vm_normal_folio(), and we also
> need
>
> nr_ptes to know how much to skip, so if there is no objection in passing
> int *nr_ptes,
>
> or struct folio **foliop to this new function, then I'll carry on with
> your suggestion :)
Can you quickly prototype what you have in mind and paste it here? Will
make it easier :)
--
Cheers,
David / dhildenb
More information about the linux-arm-kernel
mailing list