From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-130.mta1.migadu.com [95.215.58.130]) (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 7B3172EA732 for ; Tue, 25 Aug 2026 02:06:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787623579; cv=none; b=ptQV0H+8cUqlWJz7ObcIcF6IRCOr/OufSg3p2GqcQELX2/8xP5nEZk9ci4USzR6LMBVQu3YAvh7k6H4DLiP9QZnofR5pocL4WSTTTv9nuLVzqww80owkH1JQJUh3v51ie7gOYfBzZRpD7SwN05Royz80XdpoTKA+6/QK+NQLNB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787623579; c=relaxed/simple; bh=cme1RL/17bIGW33pWmOouQoKs0p8QtP4P5J2UaYG4Yg=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=iw4gYKXgHWuMMWxP1WYyVOyc++gAevuX1VNI3WElDQwlyieBl/m3n8hZW8jCnC45u8fojWJNHmW/Wj4m3rVF9kF3sCO4vfVkD3xKw+mpRsMqAwLoxBjjx4CiymQ4T91YscNiAWyWcJ/y91euyeNFpMtp+z+vb3CNxra/tJDFWAE= 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=DW5U2ZbS; arc=none smtp.client-ip=95.215.58.130 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="DW5U2ZbS" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=cme1RL/17bIGW33pWmOouQoKs0p8QtP4P5J2UaYG4Yg=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787623573; v=1; x=1788228373; b=DW5U2ZbS1B2ieZk3WcsXOsthiN++qi8iuXF4dFl1TLwohf4uBqxAIl59Lwe7F2a2kyzx7hmp hNXqFf7slEs4C/WqxOyKOlwCn8Wmo1JILqV9aQGbaKfolOJaFdpqTBEzxvOfbznT7TclcgUsCkf /Pi7jFEuAAUkI19+W6rQuZYs= X-Envelope-To: linux-kernel@vger.kernel.org Received: from smtpclient.apple (114.251.196.92) by mta11.migadu.com with ESMTPS id 17279551e972122e; Tue, 25 Aug 2026 02:06:13 +0000 X-Mizu-Trace-ID: 17279551e972122e X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [PATCH] mm/hugetlb: use hugetlb_vmemmap_optimizable() in boolean contexts From: Muchun Song In-Reply-To: <20260824151655.30840-1-kaitao.cheng@linux.dev> Date: Tue, 25 Aug 2026 10:05:55 +0800 Cc: Oscar Salvador , David Hildenbrand , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kaitao Cheng Content-Transfer-Encoding: 7bit Message-Id: <3B304F17-AC19-4153-96A5-0F25163B4BB4@linux.dev> References: <20260824151655.30840-1-kaitao.cheng@linux.dev> To: Kaitao Cheng X-Mailer: Apple Mail (2.3864.600.51.1.1) > On Aug 24, 2026, at 23:16, Kaitao Cheng wrote: > > From: Kaitao Cheng > > The two boot-time sites in hugetlb_hstate_alloc_pages_onenode() and > hugetlb_pages_alloc_boot_node() only need to know whether HVO is > applicable, not the exact optimizable size. Switch them from > hugetlb_vmemmap_optimizable_size() to hugetlb_vmemmap_optimizable() > to make intent explicit. > > No functional change intended. > > Signed-off-by: Kaitao Cheng Reviewed-by: Muchun Song Thanks.