Re: [PATCH v2 6/8] mm: isolate mmap internal logic to mm/vma.c

From: Vlastimil Babka
Date: Thu Oct 24 2024 - 13:23:34 EST


On 10/23/24 22:38, Lorenzo Stoakes wrote:
> In previous commits we effected improvements to the mmap() logic in
> mmap_region() and its newly introduced internal implementation function
> __mmap_region().
>
> However as these changes are intended to be backported, we kept the delta
> as small as is possible and made as few changes as possible to the newly
> introduced mm/vma.* files.
>
> Take the opportunity to move this logic to mm/vma.c which not only isolates
> it, but also makes it available for later userland testing which can help
> us catch such logic errors far earlier.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>

With help of git's colorMoved:

Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>