Thread (21 messages) flat view 21 messages, 3 authors, 1d ago

Re: [PATCH 03/11] mm/sparse-vmemmap: open-code init_compound_tail()

From: Qi Zheng <qi.zheng@linux.dev>
Date: 2026-09-01 03:18:21
Also in: linux-doc, linux-mm, lkml


On 8/31/26 3:53 PM, Muchun Song wrote:
init_compound_tail() is only used by vmemmap_shared_tail_page(), where
the shared tail page setup intentionally passes NULL as the compound head.

Keeping this helper in mm/internal.h exposes that special case to the rest
of the MM code and can make the NULL head argument look generally valid.
Open-code the initialization at the only call site so the special-case use
stays local to sparse vmemmap optimization.

No functional change intended.

Signed-off-by: Muchun Song <redacted>
---
  mm/internal.h       | 9 ---------
  mm/sparse-vmemmap.c | 5 ++++-
  2 files changed, 4 insertions(+), 10 deletions(-)
Acked-by: Qi Zheng <qi.zheng@linux.dev>

Thanks,
Qi


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help