From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-252.mta1.migadu.com [95.215.58.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D332D3F660B for ; Tue, 25 Aug 2026 10:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.252 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787655115; cv=none; b=n/eNXScRwxoakglR5ehlU4VavLlETcBaBMZ4DsZYq4E1aDF90Xe2jwGcFsuekuNvKADf50i05+Jnm71/KhWUqixqEk03VMFDAXKSGuuX4wnnXinbKVm3SHbVo4sVM9ZGwzDjXAH2jtyRFt69kURek5UdjyuWyTWmbOKTN/6O+ic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787655115; c=relaxed/simple; bh=1kptbS9Xxr7JsUyG7MV7yG3aF8sPPAp67Bzvk/FeIxQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XEPUz2/xfGRpCwNc7qksXkjpF6XbXKOHijnyWACiC10282tgH42ejCjRN3RhRCoMIfzP4hCrXV8jO/Ijp3VOMOcs5puZw2/DZ2jI53d+rwwCmT/cqfMV9ZaMhbOchs8wNq426Lp2BmuJma7LtFZgm9oXnDFYAhkSmjClBFj9BX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=U2Rh0scN; arc=none smtp.client-ip=95.215.58.252 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="U2Rh0scN" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=1kptbS9Xxr7JsUyG7MV7yG3aF8sPPAp67Bzvk/FeIxQ=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787655111; v=1; x=1788259911; b=U2Rh0scNWwHQJKif0nwLMAYvE7V4kc1flkm5K5HnO3s1O0qRowArnVHTNaeF5YHVQXkHyfpU qGu86avCqGIZAyD2ba4IlPyo6hIzprZvWYPyw8aR2PSgWQyetFC+6Hv3k3NBetsb+58TNxpTtqe GlRdZ8nIEeHgZip2T4qWZc/g= X-Envelope-To: linux-kernel@vger.kernel.org Received: from [100.82.85.74] (101.71.133.200) by smtp.migadu.com with ESMTPS id a8ec164d6dcd91e4; Tue, 25 Aug 2026 10:51:51 +0000 X-Mizu-Trace-ID: a8ec164d6dcd91e4 X-Migadu-Flow: FLOW_OUT Message-ID: <3a3d0eb3-8350-4786-b5fa-bbde9d83abeb@linux.dev> Date: Tue, 25 Aug 2026 18:51:41 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 06/17] mm/mm_init: factor out pfn_to_zone() To: Muchun Song , Andrew Morton , Oscar Salvador , David Hildenbrand Cc: Mike Rapoport , Vlastimil Babka , Lorenzo Stoakes , Michal Hocko , David Laight , "Liam R . Howlett" , Suren Baghdasaryan , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song References: <20260825084608.47437-1-songmuchun@bytedance.com> <20260825084608.47437-7-songmuchun@bytedance.com> From: Qi Zheng In-Reply-To: <20260825084608.47437-7-songmuchun@bytedance.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/25/26 4:45 PM, Muchun Song wrote: > pfn_to_zone() in hugetlb_vmemmap.c duplicates the zone lookup logic in > __init_deferred_page(). > > Move it to mm_init.c, declare it in mm/mm_init.h, and reuse it from > __init_deferred_page() and HugeTLB early vmemmap initialization instead > of open-coding the zone walk there. > > Signed-off-by: Muchun Song > Acked-by: Mike Rapoport (Microsoft) Acked-by: Qi Zheng Thanks, Qi