* + mm-hugetlb-drop-unused-mm-parameter-from-unmap_ref_private.patch added to mm-new branch
@ 2026-10-30 4:49 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-10-30 4:49 UTC (permalink / raw)
To: mm-commits, vishal.moola, osalvador, muchun.song, gourry, david,
lienze, akpm
The patch titled
Subject: mm/hugetlb: drop unused mm parameter from unmap_ref_private()
has been added to the -mm mm-new branch. Its filename is
mm-hugetlb-drop-unused-mm-parameter-from-unmap_ref_private.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-hugetlb-drop-unused-mm-parameter-from-unmap_ref_private.patch
This patch will later appear in the mm-new branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews. Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.
The mm-new branch of mm.git is not included in linux-next
If a few days of testing in mm-new is successful, the patch will me moved
into mm.git's mm-unstable branch, which is included in linux-next
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Enze Li <lienze@kylinos.cn>
Subject: mm/hugetlb: drop unused mm parameter from unmap_ref_private()
Date: Wed, 21 Oct 2026 14:19:01 +0800
The mm parameter has never been used since the helper was introduced in
commit 04f2cbe35699 ("hugetlb: guarantee that COW faults for a process
that called mmap(MAP_PRIVATE) on hugetlbfs will succeed"). Remove it and
drop it at the sole call site.
Link: https://lore.kernel.org/20261021061901.376104-1-lienze@kylinos.cn
Signed-off-by: Enze Li <lienze@kylinos.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
Reviewed-by: Vishal Moola (Fractile) <vishal.moola@gmail.com>
Reviewed-by: Gregory Price (Meta) <gourry@gourry.net>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: David Hildenbrand <david@kernel.org>
---
mm/hugetlb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/mm/hugetlb.c~mm-hugetlb-drop-unused-mm-parameter-from-unmap_ref_private
+++ a/mm/hugetlb.c
@@ -5519,8 +5519,8 @@ void unmap_hugepage_range(struct vm_area
* from other VMAs and let the children be SIGKILLed if they are faulting the
* same region.
*/
-static void unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
- struct folio *folio, unsigned long address)
+static void unmap_ref_private(struct vm_area_struct *vma, struct folio *folio,
+ unsigned long address)
{
struct hstate *h = hstate_vma(vma);
struct vm_area_struct *iter_vma;
@@ -5696,7 +5696,7 @@ retry_avoidcopy:
hugetlb_vma_unlock_read(vma);
mutex_unlock(&hugetlb_fault_mutex_table[hash]);
- unmap_ref_private(mm, vma, old_folio, vmf->address);
+ unmap_ref_private(vma, old_folio, vmf->address);
mutex_lock(&hugetlb_fault_mutex_table[hash]);
hugetlb_vma_lock_read(vma);
_
Patches currently in -mm which might be from lienze@kylinos.cn are
docs-hugetlbpagerst-clarify-hugepages_total-in-hugetlbpagerst.patch
mm-hugetlb-drop-unused-mm-parameter-from-unmap_ref_private.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-30 4:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-30 4:49 + mm-hugetlb-drop-unused-mm-parameter-from-unmap_ref_private.patch added to mm-new branch 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.