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

From: Gregory Price

Date: Fri Jul 10 2026 - 17:41:06 EST


On Fri, Jul 10, 2026 at 09:17:09PM +0100, 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: Gregory Price <gourry@xxxxxxxxxx>