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) <david@kernel.org>
---
LGTM, feel free to add:
Reviewed-by: Lance Yang <lance.yang@linux.dev>