linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] madvise anon_name cleanups
@ 2025-06-23 14:59 Vlastimil Babka
  2025-06-23 14:59 ` [PATCH RFC 1/2] mm, madvise: simplify anon_name handling Vlastimil Babka
  2025-06-23 14:59 ` [PATCH RFC 2/2] mm, madvise: move prctl_set_vma() to mm/madvise.c Vlastimil Babka
  0 siblings, 2 replies; 13+ messages in thread
From: Vlastimil Babka @ 2025-06-23 14:59 UTC (permalink / raw)
  To: Andrew Morton, Liam R. Howlett, Lorenzo Stoakes,
	David Hildenbrand, Jann Horn, Mike Rapoport, Suren Baghdasaryan,
	Michal Hocko, Colin Cross
  Cc: linux-mm, linux-kernel, Vlastimil Babka

While reviewing Lorenzo's madvise cleanups I've noticed that we can
handle anon_name in madvise code much better, so sending that as patch
1. Initially I wanted to do first move the existing logic from
   madvise_vma_behavior() to madvise_update_vma() as a separate patch
before the actual simplification but that would require adding
anon_vma_name_put() in error handling paths only to be removed again, so
it's a single patch to avoid churn.

It's also an opportunity to move some mm code from prctl under mm,
hence patch 2. It's RFC to see if people agree on where patch 2 moves
things, or have better ideas.

Based on mm-new.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
---
Vlastimil Babka (2):
      mm, madvise: simplify anon_name handling
      mm, madvise: move prctl_set_vma() to mm/madvise.c

 include/linux/mm.h | 13 ++++----
 kernel/sys.c       | 64 ------------------------------------
 mm/madvise.c       | 96 +++++++++++++++++++++++++++++++++++++++---------------
 3 files changed, 76 insertions(+), 97 deletions(-)
---
base-commit: 4216fd45fc9156da0ee33fcb25cc0a5265049e32
change-id: 20250623-anon_name_cleanup-e89b687038ed

Best regards,
-- 
Vlastimil Babka <vbabka@suse.cz>



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

end of thread, other threads:[~2025-06-24  8:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-23 14:59 [PATCH RFC 0/2] madvise anon_name cleanups Vlastimil Babka
2025-06-23 14:59 ` [PATCH RFC 1/2] mm, madvise: simplify anon_name handling Vlastimil Babka
2025-06-23 15:39   ` Suren Baghdasaryan
2025-06-23 16:22     ` Liam R. Howlett
2025-06-23 16:47       ` Lorenzo Stoakes
2025-06-23 16:56   ` Lorenzo Stoakes
2025-06-24  8:03     ` Vlastimil Babka
2025-06-23 14:59 ` [PATCH RFC 2/2] mm, madvise: move prctl_set_vma() to mm/madvise.c Vlastimil Babka
2025-06-23 16:47   ` Suren Baghdasaryan
2025-06-23 16:58     ` Lorenzo Stoakes
2025-06-23 17:13   ` Lorenzo Stoakes
2025-06-24  8:12     ` Vlastimil Babka
2025-06-24  8:52       ` Lorenzo Stoakes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).