From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794023625; b=kZ8kMAMT72WL+GmdUddp28sd+eE33JLKMHEe/MkFiT1KSHinLWecpzIMbY5hhqex4108 VZUigO+6HxYBYFevQJ7GSDYlXnoqzH0SobKU7/8+Vw6KebbWc3HyHzNQc79gLqWlJXUjY hao3KB6fY5beDCkWtWo0zW6bm7VAeRgSmo1AiMC3X0Uu/QrX56mAMBmN4+VbsQlNUDOtl 8IUr7xao5/yYR8FuBMUwI5h8+sH38EuZuLwjx3KGJT6l7xk7cKY1pQfM76GH8YTUq+xDb JyQys688r/NOBsxghd4gFqhTdDzKsyuJvKwI/GSfUXVLF7Wvw4infCdIy0M7ynwzw7w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794023625; h=Received:DKIM-Signature:Date:To:From:Subject:Message-Id; bh=qdLxYF2ls1degQjDdPkTsxPE9AtNw/KkL5su9SVT4vU=; b=WZm/fYku4SRvTtomuaq30PyiRFZ/K6RA6uL2lpdM5yJaIbp7MStgwGUsCAgOxg9cuw2y SJg3V4y9PgB5+0M22ursQXBaJkNYOzXufArGMyiWvHmLjRX7x7Aod1PboMvTCkE9+M6pQ HNgbzTJeV89naJdy/LsoVuNHDg+AU52deqF3OHgY3N3E8VrHxzJxaCnp2sJOvBEVyGTgs JAXFhFK+gFyKIqHicuAJg2fV4Dnb1S1gFXvyblBQHrzCoVy/58cu/UgrSMeISjtfPiGHd qWWUxuDt5fSPi07T1+r2U/ttjqhs/vT2DTxswVYJb6B27/9VrAZKCUt//HeuiiAidyA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b="uIMQQ/Ax"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 505D2606A333 for ; Sat, 7 Nov 2026 03:53:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=uIMQQ/Ax Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B9801F0089F; Sat, 7 Nov 2026 03:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1794023625; bh=qdLxYF2ls1degQjDdPkTsxPE9AtNw/KkL5su9SVT4vU=; h=Date:To:From:Subject; b=uIMQQ/Axan/2tf9RN0VFfRPzNHfieIZhxeh0y0h+fl3eW08F4aIhsuQ1OGBU0U8SX RP5njh6dkXBgdkHTDizEWfk/CbFZC1LdfUy6DT15xyKfrGWtZCsa5ScPUmqM0DwqBQ vbBvqkJsDY7rUGGiLTlGnO0fY+Q3i87HZ/N0pXVc= Date: Fri, 06 Nov 2026 19:53:44 -0800 To: mm-commits@vger.kernel.org,muchun.song@linux.dev,akpm@linux-foundation.org From: Andrew Morton Subject: + mm-hugetlb_vmemmap-rename-vmemmap_remap_pte-to-vmemmap_optimize_pte.patch added to mm-unstable branch Message-Id: <20261107035345.1B9801F0089F@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: mm: hugetlb_vmemmap: rename vmemmap_remap_pte() to vmemmap_optimize_pte() has been added to the -mm mm-unstable branch. Its filename is mm-hugetlb_vmemmap-rename-vmemmap_remap_pte-to-vmemmap_optimize_pte.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-hugetlb_vmemmap-rename-vmemmap_remap_pte-to-vmemmap_optimize_pte.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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: Muchun Song Subject: mm: hugetlb_vmemmap: rename vmemmap_remap_pte() to vmemmap_optimize_pte() Date: Sat, 07 Nov 2026 10:27:50 +0800 Both optimization and restoration update vmemmap PTEs by remapping them, so "remap" does not identify the callback's role. Use "optimize" for the optimization callback to match "restore" and make the two directions explicit and consistent. No functional change intended. Link: https://lore.kernel.org/20261107022756.77731-8-songmuchun@bytedance.com Signed-off-by: Muchun Song Signed-off-by: Andrew Morton Reviewed-by: Lance Yang Reviewed-by: Qi Zheng Reviewed-by: Mike Rapoport (Microsoft) Reviewed-by: Oscar Salvador Tested-by: Andrew Morton Cc: James Houghton Cc: David Hildenbrand Cc: Yili Zhang Cc: Kiryl Shutsemau Cc: "Oscar Salvador (SUSE)" Cc: Huacai Chen --- mm/hugetlb_vmemmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/mm/hugetlb_vmemmap.c~mm-hugetlb_vmemmap-rename-vmemmap_remap_pte-to-vmemmap_optimize_pte +++ a/mm/hugetlb_vmemmap.c @@ -213,8 +213,8 @@ static struct page *vmemmap_dup_page_fro return dst; } -static void vmemmap_remap_pte(pte_t *pte, unsigned long addr, - struct vmemmap_remap_walk *walk) +static void vmemmap_optimize_pte(pte_t *pte, unsigned long addr, + struct vmemmap_remap_walk *walk) { struct page *page = pte_page(ptep_get(pte)); pte_t entry; @@ -302,7 +302,7 @@ static int vmemmap_remap_free(unsigned l { int ret; struct vmemmap_remap_walk walk = { - .remap_pte = vmemmap_remap_pte, + .remap_pte = vmemmap_optimize_pte, .vmemmap_tail = vmemmap_tail, .vmemmap_pages = vmemmap_pages, .flags = flags, _ Patches currently in -mm which might be from muchun.song@linux.dev are mm-fix-missing-page-table-destructor-in-pagetable_free.patch riscv-mm-fix-hotplug-page-table-destructor-handling.patch riscv-mm-fix-missing-destructor-for-hotplug-pud-tables.patch arm64-mm-fix-destructor-for-unconstructed-hotplug-page-tables.patch mm-sparse-vmemmap-map-shared-vmemmap-tail-pages-as-read-only.patch powerpc-mm-map-shared-vmemmap-tail-pages-as-read-only.patch mm-hugetlb_vmemmap-remove-vmemmap_wrprotect_hvo.patch mm-hugetlb_vmemmap-remove-hugetlb_vmemmap_optimize_bootmem_folios.patch mm-generalize-kernel-pte-table-allocation.patch mm-generalize-pmd-page-table-allocation.patch mm-generalize-pud-page-table-allocation.patch mm-remove-pagetable_dtor_free.patch mm-remove-redundant-pagetable_dtor-calls.patch mm-hugetlb_vmemmap-remove-hugetlb-specific-vmemmap-optimization-macros.patch mm-hugetlb_vmemmap-unify-vmemmap_splitremap_no_tlb_flush.patch mm-hugetlb_vmemmap-simplify-vmemmap-head-page-handling.patch mm-hugetlb_vmemmap-generalize-vmemmap-page-allocation.patch mm-hugetlb_vmemmap-unify-writable-vmemmap-page-preparation.patch mm-hugetlb_vmemmap-rename-vmemmap_remap_pte-to-vmemmap_optimize_pte.patch mm-hugetlb_vmemmap-simplify-shared-tail-page-handling.patch mm-hugetlb_vmemmap-move-alloc_vmemmap_page_list-next-to-its-free-helper.patch mm-hugetlb_vmemmap-make-vmemmap-optimization-folio-oriented.patch mm-hugetlb_vmemmap-make-vmemmap-restoration-folio-oriented.patch mm-hugetlb_vmemmap-unify-vmemmap-range-restoration.patch mm-hugetlb_vmemmap-make-vmemmap-pte-conversion-folio-oriented.patch mm-hugetlb-fix-validation-of-unsupported-hugetlb-orders.patch