[PATCH v5 3/7] mm: Add batched versions of ptep_modify_prot_start/commit

Zi Yan ziy at nvidia.com
Wed Jul 23 08:09:22 PDT 2025


On 18 Jul 2025, at 5:02, Dev Jain wrote:

> Batch ptep_modify_prot_start/commit in preparation for optimizing mprotect,
> implementing them as a simple loop over the corresponding single pte
> helpers. Architecture may override these helpers.
>
> Signed-off-by: Dev Jain <dev.jain at arm.com>
> ---
>  include/linux/pgtable.h | 84 ++++++++++++++++++++++++++++++++++++++++-
>  mm/mprotect.c           |  4 +-
>  2 files changed, 85 insertions(+), 3 deletions(-)
>

LGTM. Reviewed-by: Zi Yan <ziy at nvidia.com>

Best Regards,
Yan, Zi



More information about the linux-arm-kernel mailing list