Thread (49 messages) 49 messages, 9 authors, 2026-08-30

Re: [PATCH 3/6] userfaultfd: use userfaultfd_*() helpers instead of open coded flag tests

flat view

From: Barry Song <baohua@kernel.org>
Date: 2026-08-23 21:14:22
Also in: linux-doc, linux-fsdevel, linux-mm, lkml

On Sun, Aug 23, 2026 at 8:18 PM Mike Rapoport (Microsoft)
[off-list ref] wrote:
Move userfaultfd_{missing,wp,minor,rwp}() and userfaultfd_protected()
ahead of uffd_disable_huge_pmd_share() and uffd_disable_fault_around()
and make the latter two use the helpers rather than open coded VMA flag
masks.

Convert open coded VMA flag test in mfill_get_vma() to userfaultfd_wp()
as well.

With every user of the per-VMA uffd modes going through the helpers,
their underlying representation can be changed in the next step.

No functional change.

Assisted-by: copilot:claude-opus-5
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
LGTM,

Reviewed-by: Barry Song <baohua@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help