Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] mm: Simplify HugeTLB vmemmap optimization code
@ 2026-11-24 11:05 Muchun Song
  2026-11-24 11:05 ` [PATCH 1/6] mm/hugetlb_vmemmap: remove the vmemmap savings boot message Muchun Song
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Muchun Song @ 2026-11-24 11:05 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 87cdbd9bd631.

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.

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              |  2 +-
 include/linux/page-flags.h           | 10 +--
 include/linux/vmemmap-optimization.h | 14 +---
 mm/hugetlb.c                         | 14 ++--
 mm/hugetlb_vmemmap.c                 | 96 +++++++++-------------------
 mm/hugetlb_vmemmap.h                 | 45 ++++---------
 6 files changed, 58 insertions(+), 123 deletions(-)


base-commit: 87cdbd9bd63174de47ba16555bfe9800a8f3da07
-- 
2.54.0



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

end of thread, other threads:[~2026-11-24 11:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 11:05 [PATCH 0/6] mm: Simplify HugeTLB vmemmap optimization code Muchun Song
2026-11-24 11:05 ` [PATCH 1/6] mm/hugetlb_vmemmap: remove the vmemmap savings boot message Muchun Song
2026-11-24 11:16   ` sashiko-bot
2026-11-24 11:18     ` Muchun Song
2026-11-24 11:05 ` [PATCH 2/6] mm/hugetlb_vmemmap: fold vmemmap_should_optimize() into its callers Muchun Song
2026-11-24 11:05 ` [PATCH 3/6] mm/hugetlb_vmemmap: drop the redundant hstate argument Muchun Song
2026-11-24 11:05 ` [PATCH 4/6] mm/hugetlb_vmemmap: open-code free_vmemmap_page() Muchun Song
2026-11-24 11:05 ` [PATCH 5/6] mm/hugetlb_vmemmap: drop obsolete restore refcount warning Muchun Song
2026-11-24 11:05 ` [PATCH 6/6] mm/vmemmap-optimization: centralize the vmemmap optimization support check Muchun Song

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