From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E289397692 for ; Tue, 28 Apr 2026 07:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777360740; cv=none; b=Mx8T+E0yJqEVgH/S7nS76G1C8DtN1Ukj/Fxu59kFE3PPxsqiLQi9M3A/5qNwqpUc7LwgIueAdXTSw9ZXrvHq06egDXsUY1UxY1O1tKufojFVJ3HhPNS9Fiha3f4f9OpKPNz4C5j63BRZGEwENQf34IX2H8j3tDHAKvbVw826EsA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777360740; c=relaxed/simple; bh=JWWk+ejNBKAE57oeYaLCSn1Yap7+NFRPWRTEBQ3yAmc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WYNObm44dGU2V9Q50l1Y7eL3eSsqfX7NAkntST79x50kw7rI6qgFkTgoBQAVJUxo/m28vnAfPgPOkttqTeG6ZWqdDdiPR8hxIV/mr6zSFG3HOEt5ItWSYRM1FbwKt3gGKaDK21JArFaUZbSOpuRozMPo30WTViQ1yvnEpxOtJko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YFtMVKnP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YFtMVKnP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EFBBC2BCAF; Tue, 28 Apr 2026 07:18:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777360739; bh=JWWk+ejNBKAE57oeYaLCSn1Yap7+NFRPWRTEBQ3yAmc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YFtMVKnPM3cs5jFOwUhJVQjUEfE2Z5FFuhoJNast+eFJkUriDYYuGiXmCPH5ogowG 1yU8ZKpdRXZm+/pQWowDXe/g/UhXlGCOILIufrF5JDmqaUFguksSabcnP8/QdtV2x9 3NMESfK/Uhy23GkKjTts0AmQZQ9aPYgf5kiQ4l+8ZgZ+w9N9uzsa47w/E5mwvPb1wm xJ8AZMTYHMkDSoP+jA+vGFFjkLVO3h5zJP0nKEFHkue8v2/TX1zZRrIFsZTijggN/2 07A1OfhxAMhFgv6+mp28+fNb1iWsaqXw5rOiFYAprfiMNhaEoHaXuuyisUMKPjCK/j hqOKFlXAE9auA== Date: Tue, 28 Apr 2026 09:18:49 +0200 From: Mike Rapoport To: Muchun Song Cc: Andrew Morton , David Hildenbrand , Muchun Song , Oscar Salvador , Michael Ellerman , Madhavan Srinivasan , Lorenzo Stoakes , "Liam R . Howlett" , Vlastimil Babka , Suren Baghdasaryan , Michal Hocko , Nicholas Piggin , Christophe Leroy , aneesh.kumar@linux.ibm.com, joao.m.martins@oracle.com, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/49] mm: integrate sparse_vmemmap_init_nid_late() into sparse_init_nid() Message-ID: References: <20260405125240.2558577-1-songmuchun@bytedance.com> <20260405125240.2558577-14-songmuchun@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260405125240.2558577-14-songmuchun@bytedance.com> On Sun, Apr 05, 2026 at 08:52:04PM +0800, Muchun Song wrote: > Move the call to sparse_vmemmap_init_nid_late() from mm_core_init_early() > into sparse_init_nid(). > > Since sparse_init() has been deferred until after zone initialization, > the zone data structures are now available during sparse_init(). This > satisfies the requirements of sparse_vmemmap_init_nid_late(), allowing > it to be moved safely. > > This change unifies the vmemmap initialization steps by placing both > sparse_vmemmap_init_nid_early() and sparse_vmemmap_init_nid_late() > within the sparse memory initialization logic, making the code structure > clearer. > > Signed-off-by: Muchun Song Reviewed-by: Mike Rapoport (Microsoft) > --- > mm/mm_init.c | 4 ---- > mm/sparse.c | 2 ++ > 2 files changed, 2 insertions(+), 4 deletions(-) -- Sincerely yours, Mike.