Re: [PATCH v2 2/2] mm/mprotect: special-case small folios when applying write permissions

Andrew Morton
2026-04-02T03:44:25Z

On Wed, 1 Apr 2026 17:09:31 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:

> > I can easily extending
> >
> > https://gitlab.com/davidhildenbrand/scratchspace/-/blob/main/pte-mapped-folio-benchmarks.c
> >
> > to have an "mprotect" mode. I had that in the past bit discarded it.
> >
> > Then, we can easily measure the effect on various folio sizes when
> > mprotect'ing a larger memory area.
> >
> > With order-0 we can then benchmark small folios exclusively.
>
> It sounds like this is all possible future work?
>
> We have Lorenzo's R-b on this [2/2]. I'm reading this discussion as
> "upstream both"?

Sorry, please ignore. Reading skills.