All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] mm: Simplify HugeTLB vmemmap optimization code
@ 2026-12-01  9:58 Muchun Song
  2026-12-01  9:58 ` [PATCH v2 1/6] mm/hugetlb_vmemmap: remove the vmemmap savings boot message Muchun Song
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Muchun Song @ 2026-12-01  9:58 UTC (permalink / raw)
  To: Oscar Salvador, Mike Rapoport, David Hildenbrand, Andrew Morton
  Cc: Muchun Song, Lance Yang, Qi Zheng, linux-mm, Muchun Song

Hi,

This is based on the mm-new branch at commit 872ceec1e3ca.

HugeTLB vmemmap optimization has evolved over time, leaving obsolete
and duplicated logic spread across the implementation. This makes the
code harder to follow and obscures the contract shared by HugeTLB and
the generic vmemmap optimization helpers.

Simplify the code around that common contract and align the HVO
implementation with its current behavior.

The first five patches simplify the HugeTLB-specific implementation.
The final patch centralizes the support condition shared by HVO and the
generic compound-page helpers.

v2:
- Make the !CONFIG_HUGETLB_PAGE huge_page_order() stub const-correct
  (reported by Sashiko)
- Mention that the batch path reads the enable policy once at entry
  (suggested by Lance Yang)
- Document why the optimize path still requires a zero refcount
  (suggested by Lance Yang)
- Collect Reviewed-by tags from Lance Yang

v1: https://lore.kernel.org/all/20261124110530.3004071-1-songmuchun@bytedance.com/

Muchun Song (6):
  mm/hugetlb_vmemmap: remove the vmemmap savings boot message
  mm/hugetlb_vmemmap: fold vmemmap_should_optimize() into its callers
  mm/hugetlb_vmemmap: drop the redundant hstate argument
  mm/hugetlb_vmemmap: open-code free_vmemmap_page()
  mm/hugetlb_vmemmap: drop obsolete restore refcount warning
  mm/vmemmap-optimization: centralize the vmemmap optimization support
    check

 include/linux/hugetlb.h              |   4 +-
 include/linux/page-flags.h           |  10 +--
 include/linux/vmemmap-optimization.h |  14 +---
 mm/hugetlb.c                         |  14 ++--
 mm/hugetlb_vmemmap.c                 | 101 ++++++++++-----------------
 mm/hugetlb_vmemmap.h                 |  45 ++++--------
 6 files changed, 64 insertions(+), 124 deletions(-)


base-commit: 872ceec1e3caf227655a58f7407a9c8493dcf56f
-- 
2.54.0



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

end of thread, other threads:[~2026-12-01 21:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  9:58 [PATCH v2 0/6] mm: Simplify HugeTLB vmemmap optimization code Muchun Song
2026-12-01  9:58 ` [PATCH v2 1/6] mm/hugetlb_vmemmap: remove the vmemmap savings boot message Muchun Song
2026-12-01 21:26   ` + mm-hugetlb_vmemmap-remove-the-vmemmap-savings-boot-message.patch added to mm-new branch Andrew Morton
2026-12-01  9:58 ` [PATCH v2 2/6] mm/hugetlb_vmemmap: fold vmemmap_should_optimize() into its callers Muchun Song
2026-12-01 21:26   ` + mm-hugetlb_vmemmap-fold-vmemmap_should_optimize-into-its-callers.patch added to mm-new branch Andrew Morton
2026-12-01  9:58 ` [PATCH v2 3/6] mm/hugetlb_vmemmap: drop the redundant hstate argument Muchun Song
2026-12-01 21:26   ` + mm-hugetlb_vmemmap-drop-the-redundant-hstate-argument.patch added to mm-new branch Andrew Morton
2026-12-01  9:58 ` [PATCH v2 4/6] mm/hugetlb_vmemmap: open-code free_vmemmap_page() Muchun Song
2026-12-01 21:27   ` + mm-hugetlb_vmemmap-open-code-free_vmemmap_page.patch added to mm-new branch Andrew Morton
2026-12-01  9:58 ` [PATCH v2 5/6] mm/hugetlb_vmemmap: drop obsolete restore refcount warning Muchun Song
2026-12-01 21:27   ` + mm-hugetlb_vmemmap-drop-obsolete-restore-refcount-warning.patch added to mm-new branch Andrew Morton
2026-12-01  9:58 ` [PATCH v2 6/6] mm/vmemmap-optimization: centralize the vmemmap optimization support check Muchun Song
2026-12-01 21:27   ` + mm-vmemmap-optimization-centralize-the-vmemmap-optimization-support-check.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.