mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mm/memory: remove unused vmf_insert_mixed_mkwrite()
@ 2026-10-02 16:05 Sang-Heon Jeon
  2026-10-02 16:05 ` [PATCH v2 1/3] " Sang-Heon Jeon
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Sang-Heon Jeon @ 2026-10-02 16:05 UTC (permalink / raw)
  To: Andrew Morton, David Hildenbrand
  Cc: Anshuman Khandual, Jose A . Perez de Azpillaga, Liam R. Howlett,
	linux-kernel, linux-mm, Lorenzo Stoakes, Michal Hocko,
	Mike Rapoport, Suren Baghdasaryan, Vlastimil Babka

Hello,

Since commit 38607c62b34b ("fs/dax: properly refcount fs dax pages"),
vmf_insert_mixed_mkwrite() has no callers. This series removes it and
the mkwrite handling that only it used.

Patch 1 removes the function.

Patch 2 removes the mkwrite argument, which is then always false. It
also removes the unreachable code in insert_pfn().

Patch 3 merges __vm_insert_mixed() into vmf_insert_mixed().

No functional change.

---
Changes from v1 [1]
- Split into three patches for easier review
- Move the comment about -EBUSY handling above the check in
  __vm_insert_mixed()

[1] https://lore.kernel.org/all/20260929143707.450805-1-ekffu200098@gmail.com/
---

Sang-Heon Jeon (3):
  mm/memory: remove unused vmf_insert_mixed_mkwrite()
  mm/memory: remove the mkwrite argument from __vm_insert_mixed()
  mm/memory: merge __vm_insert_mixed() into vmf_insert_mixed()

 include/linux/mm.h |  2 --
 mm/memory.c        | 81 ++++++++++++++--------------------------------
 2 files changed, 24 insertions(+), 59 deletions(-)


base-commit: 1c2b8d2725f84b43fabe3b3e9628c91db8ca6c65
-- 
2.43.0


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

end of thread, other threads:[~2026-10-02 23:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-02 16:05 [PATCH v2 0/3] mm/memory: remove unused vmf_insert_mixed_mkwrite() Sang-Heon Jeon
2026-10-02 16:05 ` [PATCH v2 1/3] " Sang-Heon Jeon
2026-10-02 18:35   ` SJ Park
2026-10-02 23:32   ` Jose A. Perez de Azpillaga
2026-10-02 16:05 ` [PATCH v2 2/3] mm/memory: remove the mkwrite argument from __vm_insert_mixed() Sang-Heon Jeon
2026-10-02 18:45   ` SJ Park
2026-10-02 23:34   ` Jose A. Perez de Azpillaga
2026-10-02 16:05 ` [PATCH v2 3/3] mm/memory: merge __vm_insert_mixed() into vmf_insert_mixed() Sang-Heon Jeon
2026-10-02 18:47   ` SJ Park
2026-10-02 23:35   ` Jose A. Perez de Azpillaga

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

all inboxes | Powered by JetHome®