Re: [PATCH 5/6] userfaultfd: decouple fault reason from VMA flags
From: Muchun Song
Date: Mon Aug 24 2026 - 04:13:17 EST
> On Aug 23, 2026, at 20:17, Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx> wrote:
>
> Introduce enum uffd_reason to define reasons for user faults rather than
> overload VM_UFFD_* VMA flags for that.
>
> Using a dedicated enum makes the code clearer and decoupling the fault
> reason from VMA flags clears the way for moving the uffd mode bits out
> of VMA namespace.
>
> No functional change.
>
> Assisted-by: copilot:claude-opus-4.6
> Signed-off-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
Acked-by: Muchun Song <muchun.song@xxxxxxxxx> # for HugeTLB.
Thanks.