From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 0A7262DEA9B for ; Sun, 12 Apr 2026 14:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776005079; cv=none; b=HP7NsJHsQkN7YsZaXi5yXjHw0zJ7b93eVvbF4ht3de+7RqU01NGIPRCzq6xBsMT7qYv1KFvv5DjDVWo7G5lPzMrPlkoKoeZBvtF2vg40cLcsaV1vZhKmgnPA5TBtPmuH3LpBSpqczbQQot2OWuywxMKA/SJ6bK//LbzOQOI96+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776005079; c=relaxed/simple; bh=SP4JZFK73O/7PhceItvmGe+PqzKRPh4wfXvdJo0/N2Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ZHpNqxfYUZooZM3GlOOucOcEdDaNvt8QFpFkwLTwH120k9C3CsDlXjWmUkBV7Qx98vwmEXFk+ONPh4sKjRRP+i2CMoVYJ1lDxqSwOSKkgJE4Xn5ncNotKMAbOA7l8R+b1+S0RDYdltHK7itHX38rEHWjEUYIr53idhqKf9u0vuQ= 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=XuqQDI7/; arc=none smtp.client-ip=91.218.175.170 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="XuqQDI7/" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1776005073; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SP4JZFK73O/7PhceItvmGe+PqzKRPh4wfXvdJo0/N2Y=; b=XuqQDI7/IsFfda8a9LJm8tGIt0dZJ9fx8WKi8J7HtasTDIglBYICB+kHKJj14o91tx4QJw z4Qk+N9rTaWYrWTxEcWG/AZTpQ1hB8FexfTLUW84bsS/wkYW2bAXs4ngAyTKBTNcgBc9p3 cCgi70F0SwIRxfoo28Lt8uwe/hf3+/Q= From: Lance Yang To: luizcap@redhat.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, david@kernel.org, baolin.wang@linux.alibaba.com, ryan.roberts@arm.com, akpm@linux-foundation.org, lorenzo.stoakes@oracle.com, Lance Yang Subject: Re: [PATCH v3 08/10] mm: replace thp_disabled_by_hw() with pgtable_has_pmd_leaves() Date: Sun, 12 Apr 2026 22:44:02 +0800 Message-Id: <20260412144402.52156-1-lance.yang@linux.dev> In-Reply-To: <9432a2398caef7261ca44355fb7b786bb20bc15e.1775679721.git.luizcap@redhat.com> References: <9432a2398caef7261ca44355fb7b786bb20bc15e.1775679721.git.luizcap@redhat.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=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On Wed, Apr 08, 2026 at 04:23:03PM -0400, 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 >--- Nice cleanup, thanks! Reviewed-by: Lance Yang