linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mm/mremap: Remove extra vma tree walk
@ 2024-10-18 17:41 Liam R. Howlett
  2024-10-18 17:41 ` [PATCH v2 1/2] mm/mremap: Clean up vma_to_resize() Liam R. Howlett
  2024-10-18 17:41 ` [PATCH v2 2/2] mm/mremap: Remove goto from mremap_to() Liam R. Howlett
  0 siblings, 2 replies; 8+ messages in thread
From: Liam R. Howlett @ 2024-10-18 17:41 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-mm, linux-kernel, Lorenzo Stoakes, Jann Horn,
	David Hildenbrand, Qi Zheng, Kefeng Wang, Jeff Xu, Pedro Falcato,
	Liam R. Howlett

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/20241016201719.2449143-1-Liam.Howlett@oracle.com/

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

-- 
2.43.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-23  2:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-18 17:41 [PATCH v2 0/2] mm/mremap: Remove extra vma tree walk Liam R. Howlett
2024-10-18 17:41 ` [PATCH v2 1/2] mm/mremap: Clean up vma_to_resize() Liam R. Howlett
2024-10-21 10:03   ` Lorenzo Stoakes
2024-10-22 22:08   ` Pedro Falcato
2024-10-23  2:10     ` Liam R. Howlett
2024-10-18 17:41 ` [PATCH v2 2/2] mm/mremap: Remove goto from mremap_to() Liam R. Howlett
2024-10-21 10:19   ` Lorenzo Stoakes
2024-10-22 22:10   ` Pedro Falcato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox