From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) (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 85BAE230BE9 for ; Sat, 11 Apr 2026 07:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775890912; cv=none; b=nrUgdVOqCOPUKPo8pA6w9teJSh3D/wxE28qCypCE4vI+0teocuqc6iRI3PNaUMF+iFyhbi3zP12HaHSJnled/l588r9ngn5CfYPzW62IlLzdnAxXSxofvNgZ2P3o8n8+XlIlmaTUmKl2tBunQ/7zmRFe1AQIows3sOU2Lnh88kw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775890912; c=relaxed/simple; bh=+QtGmhOK8KeM7H3AbIZP/v2iIyWdrm6jozUt8WVvPzM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=n5VR5DfqXC/605B1Y7oSqRZ554sp0tXVZf3gFaWsga2pmzxnX2DVBTKCya9yPS1t2mdyQXwrHGmQMHhvuGQgC2hdmfOUAFZzHU+DiEQ4OJn2Z41r94PF8w9l8ZYWtr0jyOsAUBAXJzyc8gJW1k0/LJMC+yYqhVjDpazybohiEyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=SL4hN7/F; arc=none smtp.client-ip=115.124.30.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="SL4hN7/F" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1775890904; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=itovhA6jaJUGrsujq0MFEzcnIyUQJDZTf5W+YFGrBdQ=; b=SL4hN7/Fe5n0wl2+0ErwFsZECsjHPPGXlpa5RXbMLOgS2/0pDgWvjZWlo4mWRjqLVHTcndrfpRgHhpa95MYEanhdAszq7yfho3XbANOSz35q/88vgbrc79hIqBrhgedm4bk1SwM9Qslhx7aaKVtB6EUuDGgrSlc2ssPtft5oVbc= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam011083073210;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0X0n8XRA_1775890903; Received: from 30.74.144.103(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0X0n8XRA_1775890903 cluster:ay36) by smtp.aliyun-inc.com; Sat, 11 Apr 2026 15:01:43 +0800 Message-ID: Date: Sat, 11 Apr 2026 15:01:43 +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 v3 08/10] mm: replace thp_disabled_by_hw() with pgtable_has_pmd_leaves() To: Luiz Capitulino , linux-kernel@vger.kernel.org, linux-mm@kvack.org, david@kernel.org Cc: ryan.roberts@arm.com, akpm@linux-foundation.org, lorenzo.stoakes@oracle.com References: <9432a2398caef7261ca44355fb7b786bb20bc15e.1775679721.git.luizcap@redhat.com> From: Baolin Wang In-Reply-To: <9432a2398caef7261ca44355fb7b786bb20bc15e.1775679721.git.luizcap@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/9/26 4:23 AM, Luiz Capitulino wrote: > Despite its name, thp_disabled_by_hw() just checks whether the > architecture supports PMD-sized pages. It returns true when > TRANSPARENT_HUGEPAGE_UNSUPPORTED is set in transparent_hugepage_flags, > this only occurs if the architecture implements arch_has_pmd_leaves() > and that function returns false. > > Since pgtable_has_pmd_leaves() provides the same semantics, use it > instead. > > Signed-off-by: Luiz Capitulino > --- LGTM. Reviewed-by: Baolin Wang