Thread (17 messages) flat view 17 messages, 3 authors, 7d ago

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

From: Mike Rapoport <rppt@kernel.org>
Date: 2026-09-14 07:48:30
Also in: linux-doc, linux-mm, lkml

On Fri, 11 Sep 2026 13:02:20 +0800, Muchun Song [off-list ref] 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.

[...]
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>

-- 
Sincerely yours,
Mike.

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