mm-dont-use-__vma_adjust-in-__split_vma.patch removed from -mm tree
The quilt patch titled
Subject: mm: don't use __vma_adjust() in __split_vma()
has been removed from the -mm tree. Its filename was
mm-dont-use-__vma_adjust-in-__split_vma.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Liam R. Howlett" <[email protected]>
Subject: mm: don't use __vma_adjust() in __split_vma()
Date: Fri, 20 Jan 2023 11:26:44 -0500
Use the abstracted locking and maple tree operations. Since __split_vma() is the only user of the __vma_adjust() function to use the insert argument, drop that argument. Remove the NULL passed through from fs/exec's shift_arg_pages() and mremap() at the same time.
---
fs/exec.c | 4 - include/linux/mm.h | 7 +- mm/mmap.c | 118 ++++++++++++++++++++----------------------- mm/mremap.c | 2 4 files changed, 61 insertions(+), 70 deletions(-)
fs/exec.c renamed from fs/exec.c~mm-dont-use-__vma_adjust-in-__split_vma +2 -2
@@ -699,7 +699,7 @@ static int shift_arg_pages(struct vm_are/* * cover the whole range: [new_start, old_end) */ -if (vma_adjust (&vmi, vma, new_start, old_end, vma->vm_pgoff,NULL )) +if (vma_adjust (&vmi, vma, new_start, old_end, vma->vm_pgoff))return -ENOMEM ;/*
@@ -733,7 +733,7 @@ static int shift_arg_pages(struct vm_arevma_prev (&vmi);/* Shrink the vma to just the new range */ -return vma_adjust (&vmi, vma, new_start, new_end, vma->vm_pgoff,NULL ); +return vma_adjust (&vmi, vma, new_start, new_end, vma->vm_pgoff); }/*
include/linux/mm.h renamed from include/linux/mm.h~mm-dont-use-__vma_adjust-in-__split_vma +3 -4
@@ -2832,13 +2832,12 @@ void anon_vma_interval_tree_verify(struc/* mmap.c */ extern int __vm_enough_memory (struct mm_struct *mm,long pages,int cap_sys_admin);extern int __vma_adjust (struct vma_iterator *vmi,struct vm_area_struct *vma,unsigned long start, -unsigned long end,pgoff_t pgoff,struct vm_area_struct *insert, -struct vm_area_struct *expand); +unsigned long end,pgoff_t pgoff,struct vm_area_struct *expand);static inline int vma_adjust (struct vma_iterator *vmi,struct vm_area_struct *vma,unsigned long start,unsigned long end, -pgoff_t pgoff,struct vm_area_struct *insert) +pgoff_t pgoff) { -return __vma_adjust (vmi, vma, start, end, pgoff, insert,NULL ); +return __vma_adjust (vmi, vma, start, end, pgoff,NULL ); } extern struct vm_area_struct *vma_merge(struct vma_iterator *vmi, struct mm_struct *, struct vm_area_struct *prev, unsigned long addr,
mm/mmap.c renamed from mm/mmap.c~mm-dont-use-__vma_adjust-in-__split_vma +55 -63
197 lines not on this page · raw message
mm/mremap.c renamed from mm/mremap.c~mm-dont-use-__vma_adjust-in-__split_vma +1 -1
@@ -1054,7 +1054,7 @@ SYSCALL_DEFINE5(mremap, unsigned long, a vma->vm_file, extension_pgoff,vma_policy (vma), vma->vm_userfaultfd_ctx, anon_vma_name(vma)); }else if (vma_adjust (&vmi, vma, vma->vm_start, - addr + new_len, vma->vm_pgoff,NULL )) { + addr + new_len, vma->vm_pgoff)) { vma =NULL ; }if (!vma) {
_
Patches currently in -mm which might be from [email protected] are