Skip to content

mm/mremap: Remove extra vma tree walk

Liam R. Howlett linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] mm-mremap-remove-goto-from-mremap_to.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesApplied 2/2
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

Change mremap_vma_check() to resize_is_valid() - Thanks Jeff & Andrew Fixed missing return check - Thanks Andrew
Added comments to both functions that are touched - Thanks Andrew

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/mremap: Clean up vma_to_resize()mm/mremap.c+31 -223 repliesApplied
2/2mm/mremap: Remove goto from mremap_to()mm/mremap.c+27 -192 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLorenzo StoakesPedro Falcato
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] mm/mremap: Remove extra vma tree walk

An extra vma tree walk was discovered in some mremap call paths during the discussion on mseal() changes. This patch set removes the extra vma tree walk and further cleans up mremap_to().

v1: https://lore.kernel.org/all/[email protected]/

Changes since v1:
Change mremap_vma_check() to resize_is_valid() - Thanks Jeff & Andrew Fixed missing return check - Thanks Andrew
Added comments to both functions that are touched - Thanks Andrew

Liam R. Howlett (2):
mm/mremap: Clean up vma_to_resize()
mm/mremap: Remove goto from mremap_to()

 mm/mremap.c | 93 +++++++++++++++++++++++++++++++----------------------
 1 file changed, 55 insertions(+), 38 deletions(-)
Signature · 1 line
2.43.0