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

Qi Zheng <[email protected]>
Newsgroups gmane.linux.ports.ppc.embedded
Message-ID <56119ff9-26f2-450c-bff9-8a4169027ba9__34093.2169508719$1788232736$gmane$org@linux.dev>

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 <[email protected]>
> ---
>   mm/internal.h       | 9 ---------
>   mm/sparse-vmemmap.c | 5 ++++-
>   2 files changed, 4 insertions(+), 10 deletions(-)
> 

Acked-by: Qi Zheng <[email protected]>

Thanks,
Qi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.