From nobody Fri Dec 19 18:52:53 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 1A0C432C95E for ; Mon, 15 Dec 2025 21:17:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765833437; cv=none; b=OXxG2Vhsu6NgAEWW71ZLJoX09VgWWoi6fCtlcqFzOY8H9CJ3SFodyC3I5mKDlHEa8YL4LjuZWNYJAV7HbJuDMuhZ62dr1dW3aXKeNLRCggYgA/7UHN1WblqHymJE6wfVlx5zjgYHL5MziM0uYhAx201bPgsJ4JWFZC2dnG6uRqE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765833437; c=relaxed/simple; bh=fj55OVXfAvlgGUE1sq119wcizEMGZlhG/hQt8pJytiA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N8Jk9llDLLBKNaAgtJWNt6Xv6Dx0bE47L2kjFzmua+L8ScDsmCFA1gGqcf3GZvT9Khk7IkwdPQOEICT1IwLUtN38wU5QlayPnM/ptfwwtfP+kWBVmuB4gCw9IaA0IEfvMotNoRTWFNhA2oau2K0wb2wOa699mo7y7cCpck02Bhg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=B7pU4opr; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="B7pU4opr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1765833434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zqaTMrvERP62OfHMJQmBn/TEzJ/XjLPGcF7vgjITl34=; b=B7pU4opreXU1f+5UWbjf9IED3MsIXsccWWapat1fJlIIwH5CUEQ8diUVXp5DaBungI3ZWM f9HTN65T1RtqkrpRud3SmKQWtalvCiWLXGeGyn5sWV/ey1pMyR1SHJXxJod/4d98bmYjua 0aScuU5bAEAiYKgBKoND+Cg//AkC9fE= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-341-K0Myp6WbOkiicdhMMBtMMA-1; Mon, 15 Dec 2025 16:17:11 -0500 X-MC-Unique: K0Myp6WbOkiicdhMMBtMMA-1 X-Mimecast-MFC-AGG-ID: K0Myp6WbOkiicdhMMBtMMA_1765833430 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2017219560A7; Mon, 15 Dec 2025 21:17:10 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.80.180]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D73771956056; Mon, 15 Dec 2025 21:17:08 +0000 (UTC) From: Luiz Capitulino To: 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 Subject: [PATCH 03/11] drivers: dax: use pgtable_has_pmd_leaves() Date: Mon, 15 Dec 2025 16:16:45 -0500 Message-ID: <07e9da953921df17a0a866cfc407c1db1f037a8e.1765833318.git.luizcap@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Content-Type: text/plain; charset="utf-8" dax_align_valid() uses has_transparent_hugepage() to check if PMD-sized pages are supported, use pgtable_has_pmd_leaves() instead. Acked-by: David Hildenbrand (Red Hat) Signed-off-by: Luiz Capitulino --- drivers/dax/dax-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h index 0867115aeef2..10aeaec9e789 100644 --- a/drivers/dax/dax-private.h +++ b/drivers/dax/dax-private.h @@ -117,7 +117,7 @@ static inline bool dax_align_valid(unsigned long align) { if (align =3D=3D PUD_SIZE && IS_ENABLED(CONFIG_HAVE_ARCH_TRANSPARENT_HUGE= PAGE_PUD)) return true; - if (align =3D=3D PMD_SIZE && has_transparent_hugepage()) + if (align =3D=3D PMD_SIZE && pgtable_has_pmd_leaves()) return true; if (align =3D=3D PAGE_SIZE) return true; --=20 2.52.0