Skip to contentSkip to conversation

mm-remove-prev-check-from-do_vmi_align_munmap.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Aug 11, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: remove prev check from do_vmi_align_munmap()
has been removed from the -mm tree. Its filename was
mm-remove-prev-check-from-do_vmi_align_munmap.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: remove prev check from do_vmi_align_munmap()
Date: Mon, 24 Jul 2023 14:31:46 -0400

If the prev does not exist, the vma iterator will be set to MAS_NONE, which will be treated as a MAS_START when the mas_next or mas_find is used. In this case, the next caller will be the vma iterator, which uses mas_find() under the hood and will now do what the user expects.

---

 mm/mmap.c |    2 --
 1 file changed, 2 deletions(-)
mm/mmap.c renamed from mm/mmap.c~mm-remove-prev-check-from-do_vmi_align_munmap +0 -2
@@ -2459,8 +2459,6 @@ do_vmi_align_munmap(struct vma_iterator
 	}
 
 	prev = vma_prev(vmi);
-	if (unlikely((!prev)))
-		vma_iter_set(vmi, start);
 
 	/*
 	 * Detach a range of VMAs from the mm. Using next as a temp variable as

_

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

maple_tree-add-hex-output-to-maple_arange64-dump.patch maple_tree-reorder-replacement-of-nodes-to-avoid-live-lock.patch maple_tree-introduce-mas_put_in_tree.patch maple_tree-introduce-mas_tree_parent-definition.patch maple_tree-change-mas_adopt_children-parent-usage.patch maple_tree-replace-data-before-marking-dead-in-split-and-spanning-store.patch