Re: [PATCH v2 1/4] mm: Introduce vm_uffd_ops API

From: Peter Xu

Date: Thu Sep 18 2025 - 15:32:42 EST


On Thu, Sep 18, 2025 at 02:32:31PM -0400, Liam R. Howlett wrote:
> I believe the location of the code that handles the folio. One would
> decouple the folio processing from the mm while the other would decouple
> which processing of the folio is done within the mm.
>
> Does that make sense?

Not to me.

do_fault() allows allocation and some other things (e.g. trappable),
uffd_get_folio() doesn't. They're fundamentally exactly the same otherwise.

--
Peter Xu