From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-147.mta0.migadu.com [91.218.175.147]) (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 44A7E3DE44B for ; Tue, 25 Aug 2026 10:54:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787655266; cv=none; b=Uw0OXiIczdIaS5tjlyfnag6TJJcojdHKObpRaxzkVLPE5liXh6p+kVTGj4fTmeDqA0KgkgM8UkRIxtip6kwknMwVhp9vLmPEwVvMp+yRdZfS+CHMwWCg+5rOuFvc/zUCTQ8ITFFcVdRYDjhGxKWSTGL7O66DrcYptElJsulWrmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787655266; c=relaxed/simple; bh=k+zE5wZ+j7NLnUUbdJbjWlgOvh60en9e43cI6lQENok=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KVrmgFf2nEC68T2iHOULq0ZmzE67wXeHRJ9xm6JfoFlJeugrObsBUTZmzRsDM6pxZSV8Pb4Kk1JL1Gs8lH/G1zLehd6YtTDnqS3pN5sgHcYxKO7WlGPhh5Awgk5e2+G2TQNqhGKMsjl4fnTMRhWSTbC+8SBVCjuw1cHsE8k3XZk= 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=a/Ku+VeZ; arc=none smtp.client-ip=91.218.175.147 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="a/Ku+VeZ" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=k+zE5wZ+j7NLnUUbdJbjWlgOvh60en9e43cI6lQENok=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787655262; v=1; x=1788260062; b=a/Ku+VeZPJie7WUaxZa27i4hbtJmm2aacl1TA60x7ndVyeg7KSFdROMQqt7EOVOzxzjjIN5j O9dc/9RJbruymsotQqQUJDwTrATQczbneJ/HRIdEZe8B+zmZHR+BwEnZLq0ugEvA0CaPs3gw1jv 0VG0MjKS1DAD3iip14F8X7mY= 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 8df06239c78ed4c4; Tue, 25 Aug 2026 10:54:21 +0000 X-Mizu-Trace-ID: 8df06239c78ed4c4 X-Migadu-Flow: FLOW_OUT Message-ID: <433b2245-6060-4f57-89da-c77d8425a0e0@linux.dev> Date: Tue, 25 Aug 2026 18:54:13 +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 07/17] mm/sparse-vmemmap: move helpers ahead of future callers 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-8-songmuchun@bytedance.com> From: Qi Zheng In-Reply-To: <20260825084608.47437-8-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: > Prepare for section-based vmemmap optimization by moving helpers that > follow-up changes will use. vmemmap_get_tail() will be called from the PTE > population path. section_nr_vmemmap_pages() will be made visible outside > the memory hotplug code and called from sparse_init_nid(). > > Move vmemmap_alloc_block_zero() together with vmemmap_get_tail(), since > the tail helper depends on it. Move section_nr_vmemmap_pages() earlier > into its own CONFIG_MEMORY_HOTPLUG block. That lets the later patch change > its visibility and callers without also moving the function body. > > No functional change is intended. > > Signed-off-by: Muchun Song > Acked-by: Mike Rapoport (Microsoft) Acked-by: Qi Zheng Thanks, Qi