Message ID | 20240313214719.253873-8-peterx@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D226FC54E68 for <linux-mm@archiver.kernel.org>; Wed, 13 Mar 2024 21:47:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2D3DB8005E; Wed, 13 Mar 2024 17:47:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 284B380063; Wed, 13 Mar 2024 17:47:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B0DC8005E; Wed, 13 Mar 2024 17:47:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E0FCA80063 for <linux-mm@kvack.org>; Wed, 13 Mar 2024 17:47:36 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id B66D01C0ACB for <linux-mm@kvack.org>; Wed, 13 Mar 2024 21:47:36 +0000 (UTC) X-FDA: 81893352912.02.0606C7D Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf10.hostedemail.com (Postfix) with ESMTP id C373DC001F for <linux-mm@kvack.org>; Wed, 13 Mar 2024 21:47:34 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=bazvJyk0; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf10.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=peterx@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1710366454; h=from:from:sender: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:dkim-signature; bh=4C+lWpN1qDfU+nymiqOVXkY7IqPiijqTb8F5rFjpmTU=; b=n1GcpdZg9aEBY35be7QlGaclIXpGl6+Y4AaaIQ0Jlq+pUgvq9tz5qsBf68MHBT6//YbJwL R9F1yIwnUuPSIVdY5YhAu9fDtvMxcshc5IhhCH6eMLnif4DMkCHkbpa58pqlcUeSUaNyql vq+lulcefBSkA3/0WikeKTdTm3NCABA= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=bazvJyk0; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf10.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=peterx@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1710366454; a=rsa-sha256; cv=none; b=LZ08C2AahOKPSCySwcgagpv2tmPkVGOxhA3fAYZLZC6rZlvMroLQ5hP/qXK/M0ClgQ1ruI luQrNHUEPIu2Zdzbx8tkm+Un3B4AeMSn9gORd7Xc5mmRCqcVe68fPcYObMxJUDoBLBfWik y8n5PY0Uejd5qKXyMk6pd/ON1lx+oVo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710366454; 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=4C+lWpN1qDfU+nymiqOVXkY7IqPiijqTb8F5rFjpmTU=; b=bazvJyk0oolsrXSnKJxFyuKnq+sgMqHpudvV3rD22w5lAsIl5Kmgi8N4d8fCmM6XNTQgt+ Mx3x1NgJLEBHB9xeQzI2zjTyAZWYTqU/8eJCiuUxaUjdIgVlscuQ8OrTPOFdW03B23O7wp 8Avnw21tdHOcjtGVTlEg/X4vwao5XlM= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-398-1HKWwCHOPCSfSNrMZY9TtA-1; Wed, 13 Mar 2024 17:47:33 -0400 X-MC-Unique: 1HKWwCHOPCSfSNrMZY9TtA-1 Received: by mail-ua1-f70.google.com with SMTP id a1e0cc1a2514c-7da965e700fso36740241.1 for <linux-mm@kvack.org>; Wed, 13 Mar 2024 14:47:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710366452; x=1710971252; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4C+lWpN1qDfU+nymiqOVXkY7IqPiijqTb8F5rFjpmTU=; b=qW4aS6mzvAbZnFJsWxTM4R2nkvkgunBYc5qLi8quoMUY7FYbW/9ib9RdvM4xrk+G9J 3ibjiHiYwySYqBMH8LatK14aOW4JXF72RQtLmLxk4eGRbNsNKKje/dGWMJJySJvWclPP LeIH9fSe2hD1ewDRqjSFghHbd/vAjr/VenoBnXfco6M54vzj3kupzl2uxIJ3pnkbd7IN Z7DOdebw3+xVGEg/y/OLdK4mkyYzX6MOGIYdjBU6EPaPln40srtquHODINWm5+rcNumA CEwKqwDe/obBFJbmlAZB5rwpbGuSud7q3jkTvxWqBdNQeHwTUQe3fuQCqpmc9AcSwgWz pCUQ== X-Forwarded-Encrypted: i=1; AJvYcCWJhOJlsyNZu3hPDOkGgbnOO2bOGC2UR278SqJPTvXeuuawGoUXiHrCGD3oukgfFRKIhES89Z2SK53ixqK7DBjChEk= X-Gm-Message-State: AOJu0YztvWUCku6r5V6avDwI4Q+lPEsMTAHiWHqFJPZe4czMLWumoDWu lwYk8NrcxxD/B3fqwGA4q1DIxOlM++YKUBpI7PjAD29cJN7C2trizFPHRW/63CXOeUmJFTp4J1d dBGha4qb+NLudnnOghpUUbagQmhHmg3RsG5icRWBVb+9ltI4Lpp6dpSJY X-Received: by 2002:a05:6102:22c3:b0:474:974a:9262 with SMTP id a3-20020a05610222c300b00474974a9262mr178615vsh.2.1710366452185; Wed, 13 Mar 2024 14:47:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHbMJFgovzI2kAdigpD7SPTonoPokqIJ0+3R0neH2rsizaH6LOW92IcmRgIzS4nmmpWup5Ig== X-Received: by 2002:a05:6102:22c3:b0:474:974a:9262 with SMTP id a3-20020a05610222c300b00474974a9262mr178595vsh.2.1710366451805; Wed, 13 Mar 2024 14:47:31 -0700 (PDT) Received: from x1n.redhat.com ([99.254.121.117]) by smtp.gmail.com with ESMTPSA id dv10-20020ad44eea000000b0069111c5cdd4sm60114qvb.100.2024.03.13.14.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 14:47:31 -0700 (PDT) From: peterx@redhat.com To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: linux-arm-kernel@lists.infradead.org, Matthew Wilcox <willy@infradead.org>, linuxppc-dev@lists.ozlabs.org, Christophe Leroy <christophe.leroy@csgroup.eu>, Andrew Morton <akpm@linux-foundation.org>, x86@kernel.org, peterx@redhat.com, Mike Rapoport <rppt@kernel.org>, Muchun Song <muchun.song@linux.dev>, sparclinux@vger.kernel.org, Jason Gunthorpe <jgg@nvidia.com>, Russell King <linux@armlinux.org.uk>, Shawn Guo <shawnguo@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Bjorn Andersson <andersson@kernel.org>, Arnd Bergmann <arnd@arndb.de>, Konrad Dybcio <konrad.dybcio@linaro.org>, Fabio Estevam <festevam@denx.de> Subject: [PATCH 07/13] mm/arm: Redefine pmd_huge() with pmd_leaf() Date: Wed, 13 Mar 2024 17:47:13 -0400 Message-ID: <20240313214719.253873-8-peterx@redhat.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240313214719.253873-1-peterx@redhat.com> References: <20240313214719.253873-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Rspamd-Queue-Id: C373DC001F X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: tnaenukq94jjxuh5hfaewtdf9hhozwem X-HE-Tag: 1710366454-136069 X-HE-Meta: U2FsdGVkX1/KZJwSxxGa7tO/65OJBSbCcJ3lLEhelA5dfB0XvQeTbO00wofwRh3hgkWaXDPxvhm/821lAaVXI0LYpNDGGMDnJe9mgMyXfAxu/nz/fFKAcVUlo0OswFY+albk/xHr3w7FdooqmszMmXwr1cJO+lJvGMBy+VZ5J3YJW8nZf3a5zlwd6P9DNGxEKBXHtO9sKirRX0utA8Ez1KthtS+qOpt62wn4M1TwcjiASgxvtXm7olrZNl0DpihwZLgbZ55hkJ0HkwbYRlmbc3uLnR1miz4xMliWdcOdtoF81iu+khrL6GWRPtCLBFFD5dZWaXvmhJpa0aik2zp+TjtwqG4fthu5maLPt3jp2OPKxhdWI5Y1bws+VxWV00FBsf/LYDoMBETN+hAb/hbcRFkRZLX2o1/cgJASLhxsMrZ2wsV8A4SsCiBc3ZCGXQ6HIZ3lk46GggBQvdjNFvq9+gGjH57mykm7JLJtMmmI8vY3GUAsdQ6GZm6L1QtedjiavqC+24I576VDy28/MpDoqhRhBI22LWMOHZDd8n7EynBV/gYdKnA5awOAhTJNtQMCGBTwDxKuX7d4XBFlDrsCeqGv0Bd6w2k0HtS4PYKybRD3Gna2knA9T6H0pzwb34WJUfyFwSCcBinGMR6KIpdMTKWlAarwxLR2FZXdMHHxIVVVy4S+gYAZevVq5mzljALG+DXV3BaFLEghoX4O2IkJvgeuBCxL2QZRjVZXkve6xS5enkQ9QlzTHFaiALUjnl3Mlx6ZRmj9/0WkCdpUpIAYDVIH1t4gF9yLx9yHSn31K5ZsK688AO+TQyBZ/1B3LVW1fCx1nwyWxh1gC4LsdolnqCAwpXKst1dH6suhBhpWO/TO/T5hdY1bTr0nMpVCgiZjEan69SZ/TJxdEQbn5kOrSK92ECNWPnqmLUIIMxj7jRCQapjVJZF3TlDoWGiXGOBWeDAn9+wFjEqjpn881qk P4qg6WFe d/hglEsLGD6m4lSRsrc7/erSmNg02uGhlgXLwtbN3sX7Cy3znLZ/dV3LCqT5wATT5aprAmwtGZgCxb25OCCv9e6y17++CY6vkZbogcgaaGLpS5Q5rNn+rfrqljI6doB1PU3HMT4d3QIq/364= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm/treewide: Remove pXd_huge() API
|
expand
|
diff --git a/arch/arm/mm/hugetlbpage.c b/arch/arm/mm/hugetlbpage.c index dd7a0277c5c0..c2fa643f6bb5 100644 --- a/arch/arm/mm/hugetlbpage.c +++ b/arch/arm/mm/hugetlbpage.c @@ -18,11 +18,6 @@ #include <asm/tlb.h> #include <asm/tlbflush.h> -/* - * On ARM, huge pages are backed by pmd's rather than pte's, so we do a lot - * of type casting from pmd_t * to pte_t *. - */ - int pud_huge(pud_t pud) { return 0; @@ -30,5 +25,5 @@ int pud_huge(pud_t pud) int pmd_huge(pmd_t pmd) { - return pmd_val(pmd) && !(pmd_val(pmd) & PMD_TABLE_BIT); + return pmd_leaf(pmd); }