Re: [PATCH 6/8] mm/bootmem_info: stop marking mem_section_usage as MIX_SECTION_INFO
Lance Yang <[email protected]> Thu, 21 May 2026 13:03:39 +0800
| Newsgroups | org.kernel.vger.sparclinux,org.kernel.vger.linux-kernel,org.kernel.vger.linux-s390,org.kvack.linux-mm,org.ozlabs.lists.linuxppc-dev |
|---|---|
| Message-ID | <[email protected]> |
On Mon, May 11, 2026 at 04:05:34PM +0200, David Hildenbrand (Arm) wrote: >We never free the ms->usage data for boot memory sections (see >section_deactivate()). And to identify whether ms->usage was allocated >from memblock, we simply identify it by looking at PG_reserved. Yep, PageReserved() is already enough to tell that case apart :) >Consequently, there is no need to mark ms->usage as MIX_SECTION_INFO. >Let's just stop doing that. Right, MIX_SECTION_INFO doesn't add much here. For ms->usage, removal code doesn't use MIX_SECTION_INFO at all :) >Signed-off-by: David Hildenbrand (Arm) <[email protected]> >--- LGTM, feel free to add: Reviewed-by: Lance Yang <[email protected]>