linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] mm: hugetlb: cleanup hugetlb folio allocation
@ 2025-09-10 13:39 Kefeng Wang
  2025-09-10 13:39 ` [PATCH v3 1/5] mm: hugetlb: convert to use more alloc_fresh_hugetlb_folio() Kefeng Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Kefeng Wang @ 2025-09-10 13:39 UTC (permalink / raw)
  To: Andrew Morton, David Hildenbrand, Oscar Salvador, Muchun Song
  Cc: sidhartha.kumar, jane.chu, Zi Yan, Vlastimil Babka,
	Brendan Jackman, Johannes Weiner, linux-mm, Kefeng Wang

Some cleanup for hugetlb folio allocation.

v3:
- As Zi/Matthew pointed, it's better to not set page refcount
  for both compound and non-compound allocation by adding
  alloc_contig_range_frozen_noprof(), which need more changes,
  so only send cleanup part in this version to let it go firstly
- add RB/ACK and address commets(per Zi/Oscar)

v2:
- Add RB and address some comments(per Vishal / Jane)
- Naming is hard, so don't add hvo for alloc_fresh_hugetlb_folio()
  and only drop __prep prfix for account new hugetlb folio
- Add ACR_FLAGS_FROZEN for allocating frozen compound pages
- Refactoring the cma alloc/release to prepare for cma alloc/free
  frozen folio
- https://lore.kernel.org/linux-mm/20250902124820.3081488-1-wangkefeng.wang@huawei.com/

v1: 
- https://lore.kernel.org/linux-mm/20250802073107.2787975-1-wangkefeng.wang@huawei.com/


Kefeng Wang (5):
  mm: hugetlb: convert to use more alloc_fresh_hugetlb_folio()
  mm: hugetlb: convert to account_new_hugetlb_folio()
  mm: hugetlb: directly pass order when allocate a hugetlb folio
  mm: hugetlb: remove struct hstate from init_new_hugetlb_folio()
  mm: hugeltb: check NUMA_NO_NODE in only_alloc_fresh_hugetlb_folio()

 include/linux/hugetlb.h |   7 ++-
 mm/hugetlb.c            | 104 ++++++++++++++++------------------------
 mm/hugetlb_cma.c        |   3 +-
 mm/hugetlb_cma.h        |   6 +--
 4 files changed, 52 insertions(+), 68 deletions(-)

-- 
2.27.0



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

end of thread, other threads:[~2025-09-10 13:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-10 13:39 [PATCH v3 0/5] mm: hugetlb: cleanup hugetlb folio allocation Kefeng Wang
2025-09-10 13:39 ` [PATCH v3 1/5] mm: hugetlb: convert to use more alloc_fresh_hugetlb_folio() Kefeng Wang
2025-09-10 13:39 ` [PATCH v3 2/5] mm: hugetlb: convert to account_new_hugetlb_folio() Kefeng Wang
2025-09-10 13:39 ` [PATCH v3 3/5] mm: hugetlb: directly pass order when allocate a hugetlb folio Kefeng Wang
2025-09-10 13:39 ` [PATCH v3 4/5] mm: hugetlb: remove struct hstate from init_new_hugetlb_folio() Kefeng Wang
2025-09-10 13:39 ` [PATCH v3 5/5] mm: hugeltb: check NUMA_NO_NODE in only_alloc_fresh_hugetlb_folio() Kefeng Wang

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