Re: [PATCH v2] mm/userfaultfd: detect VMA replacement after copy retry in mfill_copy_folio_retry()
From: Peter Xu
Date: Mon Mar 30 2026 - 16:52:04 EST
On Mon, Mar 30, 2026 at 09:29:09PM +0100, David Carlier wrote:
> +struct vma_snapshot {
> + struct inode *inode;
> + vm_flags_t flags;
Note that I used vma_flags_t / memcpy() / memcmp(), explicitly because IIUC
we're moving towards deprecating vm_flags_t.
Please see vma_flags_to_legacy().
> +};
--
Peter Xu