* [merged] mm-memory-remove-unused-vmf_insert_mixed_mkwrite.patch removed from -mm tree
@ 2026-11-19 4:08 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-11-19 4:08 UTC (permalink / raw)
To: mm-commits, vbabka, surenb, sj, rppt, mhocko, ljs, liam, david,
azpijr, anshuman.khandual, ekffu200098, akpm
The quilt patch titled
Subject: mm/memory: remove unused vmf_insert_mixed_mkwrite()
has been removed from the -mm tree. Its filename was
mm-memory-remove-unused-vmf_insert_mixed_mkwrite.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Sang-Heon Jeon <ekffu200098@gmail.com>
Subject: mm/memory: remove unused vmf_insert_mixed_mkwrite()
Date: Sat, 03 Oct 2026 01:05:32 +0900
Patch series "mm/memory: remove unused vmf_insert_mixed_mkwrite()", v2.
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.
This patch (of 3):
Since commit 38607c62b34b ("fs/dax: properly refcount fs dax pages"),
vmf_insert_mixed_mkwrite() has no callers.
So remove the function and its declaration.
The comment above the function describes the -EBUSY handling in
__vm_insert_mixed(). Move it above that check.
No functional change.
Link: https://lore.kernel.org/20261002160535.661399-1-ekffu200098@gmail.com
Link: https://lore.kernel.org/20261002160535.661399-2-ekffu200098@gmail.com
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: SJ Park <sj@kernel.org>
Reviewed-by: Jose A. Perez de Azpillaga <azpijr@gmail.com>
Cc: David Hildenbrand <david@kernel.org>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Lorenzo Stoakes <ljs@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@kernel.org>
include/linux/mm.h | 2 --
mm/memory.c | 16 +++++-----------
2 files changed, 5 insertions(+), 13 deletions(-)
--- a/include/linux/mm.h~mm-memory-remove-unused-vmf_insert_mixed_mkwrite
+++ a/include/linux/mm.h
@@ -5045,8 +5045,6 @@ vm_fault_t vmf_insert_pfn_prot(struct vm
unsigned long pfn, pgprot_t pgprot);
vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr,
unsigned long pfn);
-vm_fault_t vmf_insert_mixed_mkwrite(struct vm_area_struct *vma,
- unsigned long addr, unsigned long pfn);
int vm_iomap_memory(struct vm_area_struct *vma, phys_addr_t start, unsigned long len);
static inline vm_fault_t vmf_insert_page(struct vm_area_struct *vma,
--- a/mm/memory.c~mm-memory-remove-unused-vmf_insert_mixed_mkwrite
+++ a/mm/memory.c
@@ -3075,6 +3075,11 @@ static vm_fault_t __vm_insert_mixed(stru
if (err == -ENOMEM)
return VM_FAULT_OOM;
+ /*
+ * If the insertion of PTE failed because someone else already added a
+ * different entry in the mean time, we treat that as success as we assume
+ * the same entry was actually inserted.
+ */
if (err < 0 && err != -EBUSY)
return VM_FAULT_SIGBUS;
@@ -3109,17 +3114,6 @@ vm_fault_t vmf_insert_mixed(struct vm_ar
EXPORT_SYMBOL(vmf_insert_mixed);
/*
- * If the insertion of PTE failed because someone else already added a
- * different entry in the mean time, we treat that as success as we assume
- * the same entry was actually inserted.
- */
-vm_fault_t vmf_insert_mixed_mkwrite(struct vm_area_struct *vma,
- unsigned long addr, unsigned long pfn)
-{
- return __vm_insert_mixed(vma, addr, pfn, true);
-}
-
-/*
* maps a range of physical memory into the requested pages. the old
* mappings are removed. any references to nonexistent pages results
* in null mappings (currently treated as "copy-on-access")
_
Patches currently in -mm which might be from ekffu200098@gmail.com are
mm-memory-remove-the-mkwrite-argument-from-__vm_insert_mixed.patch
mm-memory-merge-__vm_insert_mixed-into-vmf_insert_mixed.patch
fault-inject-use-a-shared-initialization-helper-for-the-random-state.patch
fault-inject-fix-wrong-unit-of-verbose_ratelimit_interval_ms.patch
fault-injection-fix-typo-in-failcmdsh.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-19 4:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 4:08 [merged] mm-memory-remove-unused-vmf_insert_mixed_mkwrite.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.