Re: [PATCH v2 2/2] mm/mprotect: special-case small folios when applying write permissions
From: Andrew Morton
Date: Wed Apr 01 2026 - 23:49:47 EST
On Wed, 1 Apr 2026 17:09:31 -0700 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> 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.