Skip to contentSkip to conversation

mm-mmap-refactor-locking-out-of-__vma_adjust.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Feb 10, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/mmap: refactor locking out of __vma_adjust()
has been removed from the -mm tree. Its filename was
mm-mmap-refactor-locking-out-of-__vma_adjust.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/mmap: refactor locking out of __vma_adjust()
Date: Fri, 20 Jan 2023 11:26:41 -0500

Move the locking into vma_prepare() and vma_complete() for use elsewhere

---

 mm/internal.h |   14 ++
 mm/mmap.c     |  231 ++++++++++++++++++++++++++++--------------------
 2 files changed, 150 insertions(+), 95 deletions(-)
mm/internal.h renamed from mm/internal.h~mm-mmap-refactor-locking-out-of-__vma_adjust +14 -0
@@ -941,4 +941,18 @@ static inline int vma_iter_store_gfp(str
 
 	return 0;
 }
+
+/*
+ * VMA lock generalization
+ */
+struct vma_prepare {
+	struct vm_area_struct *vma;
+	struct vm_area_struct *adj_next;
+	struct file *file;
+	struct address_space *mapping;
+	struct anon_vma *anon_vma;
+	struct vm_area_struct *insert;
+	struct vm_area_struct *remove;
+	struct vm_area_struct *remove2;
+};
 #endif	/* __MM_INTERNAL_H */
mm/mmap.c renamed from mm/mmap.c~mm-mmap-refactor-locking-out-of-__vma_adjust +136 -95

264 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are