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

Message ID 20240125034922.1004671-1-yajun.deng@linux.dev
Headers
Series mm/mmap: simplify vma_merge() |

Message

Yajun Deng Jan. 25, 2024, 3:49 a.m. UTC
  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@linux.dev/

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(-)