[PATCH v2 0/2] mm/mmap: simplify vma_merge()

From: Yajun Deng
Date: Wed Jan 24 2024 - 22:49:49 EST


The vma_merge() has too many parameters, we can pass vma to vma_merge(),
so that it can save two parameters.
Since the src vma was passed, find_vma_intersection() can be removed.

v2: split it into two patches.
v1: https://lore.kernel.org/all/20240118082312.2801992-1-yajun.deng@xxxxxxxxx/

Yajun Deng (2):
mm/mmap: pass vma to vma_merge()
mm/mmap: remove find_vma_intersection() in vma_merge()

mm/mmap.c | 42 ++++++++++++++++++++++--------------------
1 file changed, 22 insertions(+), 20 deletions(-)

--
2.25.1