Re: [PATCH 1/2] [PATCH 1/2] mm: refactor of vma_merge()

From: Andrew Morton
Date: Thu Jun 02 2022 - 14:13:46 EST


On Thu, 2 Jun 2022 16:56:41 +0200 Jakub Matěna <matenajakub@xxxxxxxxx> wrote:

> Refactor vma_merge() to make it shorter and more understandable.
> Main change is the elimination of code duplicity in the case of
> merge next check. This is done by first doing checks and caching
> the results before executing the merge itself. The variable 'area' is
> divided into 'mid' and 'res' as previously it was used for two purposes,
> as the middle VMA between prev and next and also as the result of the
> merge itself. Exit paths are also unified.
>

Thanks, but unfortunately the code you're working on here has changed
greatly in Liam's mapletree patchset. Could you please take a look at
the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and decide if you
want to tackle it?