Re: [PATCH v2 28/33] mm/vma: slightly rework the anonymous check in __mmap_new_vma()

From: Vlastimil Babka (SUSE)

Date: Thu Jul 16 2026 - 04:23:46 EST


On 7/10/26 22:17, Lorenzo Stoakes wrote:
> Determine if the VMA is anonymous early on, so we separate the logic which
> invokes callbacks from the rest of the logic.
>
> This is in order that a subsequent commit which asserts correct virtual
> page offset for anonymous mappings correctly asserts this for new anonymous
> mappings.
>
> No functional change intended.
>
> Signed-off-by: Lorenzo Stoakes <ljs@xxxxxxxxxx>

Reviewed-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>