From patchwork Thu Jun 22 20:57:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13289624 Return-Path: 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 C2187C001DE for ; Thu, 22 Jun 2023 20:58:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 550558D001D; Thu, 22 Jun 2023 16:58:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4FD4E8D0001; Thu, 22 Jun 2023 16:58:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 39F128D001D; Thu, 22 Jun 2023 16:58:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 280098D0001 for ; Thu, 22 Jun 2023 16:58:55 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id F0CA54027F for ; Thu, 22 Jun 2023 20:58:54 +0000 (UTC) X-FDA: 80931598188.22.A785AB8 Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) by imf08.hostedemail.com (Postfix) with ESMTP id 2A35A160021 for ; Thu, 22 Jun 2023 20:58:52 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=iN2FzqOQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf08.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.179 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687467533; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=0AnRv7d38hHUVaoAGins0CaWMMRgzo0GwUb20Y9YoSw=; b=uhO+nUIODIrKULeqjM/a71MI4ONKIj5l/DxzuRDhVi4K0ij35pH3sRjLzwp6pBOtfUhB6x TZNDnvsoyZSYNfgZ8WF4BIQrVI0Sp/bjSPXEOWIG92l7Y9KRfVY79X6iZak0mCA2qx+QEy qpGsgVQw36pVh9lr9tBr9N3QpSGNJkU= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=iN2FzqOQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf08.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.179 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687467533; a=rsa-sha256; cv=none; b=noBxHnIJhpZbuacpZVRB+/gnSi6L8uGt8c7FNwmkkcYrLFE3AroQpIJanHfZpg7te8RHWd uQi6+/sx+PYos8p8mZmizipfrfqZEPb1bS4hqXtXFTLzNZQYyUl1YASgCY2tmqxGczAuis wtpthGmbs8rECsdWDLTXtOlOofIVwdI= Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-bfee66a5db6so2126615276.0 for ; Thu, 22 Jun 2023 13:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687467532; x=1690059532; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0AnRv7d38hHUVaoAGins0CaWMMRgzo0GwUb20Y9YoSw=; b=iN2FzqOQCGlMw61BHmPlvHKCi1d4I+83kYFUJ+05be01GNIJnqIJIlehoUIlvwUaVM d/OWGkj4lxemSlNpzjA9vagyXYnKzygaSW8qGOFAS4kKsFBEkls14ZpomWkO/T200zVH qlBgWwV7Su2BIgoVpSS5ByD582z4lmvR8XQqnfXM/x/kcWnUDA1l8EH7UvhzGe/a36fq qzeiYGkPPC0vXVHADUCnvEqnbyiXBVZ5TrMcTAX4hM8+UdpZhrwM5A+KI61Sp+b5buW5 P1n/PN9/guunik8p7869oduuP/QEBbbnDZw3HC5F5neXLeBMAmnYdB3CF11sup6NCeqV 0mxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687467532; x=1690059532; 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=0AnRv7d38hHUVaoAGins0CaWMMRgzo0GwUb20Y9YoSw=; b=d7VX23LpS5o1elN2kfaov7cpoPl8rDxRyGaz9KAiasHGqelXIdOI50VJo3hT6lryH5 nH8babA9OKt7nhNrFiNx7+F2WCQKP7Y1WwJJd2+rOm62wu0diOowx6jTfMn0Flzh6xkE p+B6Lhwl6nUz0Pqfk0dTagCjpnpYbOMG+aOF0DO58yXbz5sKs0m70oIfl47kgqO9GTAg ICFe0OFB9Q/8lYkdD54uxq3mt+b6Ug06DQ0JZruoiaPwFnJOrZAyibAe8LA4jI9/mcFF zts7pxc8SpudGGZYD2maqMszLAneVj6xk1p9HbMIB7duFRe39swcyfDNj54m1fEMsW/3 CzcQ== X-Gm-Message-State: AC+VfDwjEqz9qZOiOfH9PMK8o2w3q6O/99Xnm+XJkDdUo66t7P2rrx/W itwvVQKNRhk3DXW47Rupk8E= X-Google-Smtp-Source: ACHHUZ4L0O/ZcQJNV1a5FO9DGWMsGkRAWmV2oZ5bMU1z3VMLdsFOJ9p+X6w0stYIYuPTzeAJzZnheQ== X-Received: by 2002:a05:6902:1cf:b0:bff:78f9:ffcd with SMTP id u15-20020a05690201cf00b00bff78f9ffcdmr4883793ybh.38.1687467532210; Thu, 22 Jun 2023 13:58:52 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::36]) by smtp.googlemail.com with ESMTPSA id d18-20020a5b0c52000000b00bc501a1b062sm1684937ybr.42.2023.06.22.13.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 13:58:51 -0700 (PDT) From: "Vishal Moola (Oracle)" To: Andrew Morton , Matthew Wilcox Cc: linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, xen-devel@lists.xenproject.org, kvm@vger.kernel.org, Hugh Dickins , "Vishal Moola (Oracle)" , Jonas Bonn , Mike Rapoport Subject: [PATCH v5 27/33] openrisc: Convert __pte_free_tlb() to use ptdescs Date: Thu, 22 Jun 2023 13:57:39 -0700 Message-Id: <20230622205745.79707-28-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230622205745.79707-1-vishal.moola@gmail.com> References: <20230622205745.79707-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: pqrw9683hetm8thr8nnhofwfsxitfze9 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 2A35A160021 X-HE-Tag: 1687467532-484092 X-HE-Meta: U2FsdGVkX1+C1xmSEV2JU2hILUegp1HDvmPpTn69bKBwJYKh9ETFndrIWQm8m9hO0X2XNXtPRjeQet46b7cdaw/fT38M5lm8m8xXYrngoUv8h+oQLT+3vWb3djpvooSmmvHGIuufArf2bSGAbng7HqqgJe+Opn/V//Gykh1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il0QGErv4O8DUVlgSEB3mIeyQoauMD3by7bs9N0QPzzF47Tlf7YLEIBCPgvcqN7ZrQ581ka/TvOib8+CJYMMe/CJ+7NpK9RkmJiWkdlY59Ql5ip9mb6UdlSiW/hRlX0BWVwX827rlauie4naX6fYKOdPG8nKPRr0C4sGyJn8XJomiR6l8jewi7BLzmMkHt/YhZZk/4hVv+PaS4ZOujziSHePOXfAuqZCdg5XRudHMC49zDlpXTXXrUXNALGMV+S+WCVUJNr9GNoueMMVHmcAhsuEtU7mfdjL7kvGfXVI8EF+QR46fLF/slDh0pZ4XDfuYHX25B4nTJpoWxNQVo/ifRWCUtkltLsf4NjCPEz4rE4lCbhLfHvdyEe2hNa5/ 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: Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- arch/openrisc/include/asm/pgalloc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/openrisc/include/asm/pgalloc.h b/arch/openrisc/include/asm/pgalloc.h index b7b2b8d16fad..c6a73772a546 100644 --- a/arch/openrisc/include/asm/pgalloc.h +++ b/arch/openrisc/include/asm/pgalloc.h @@ -66,10 +66,10 @@ extern inline pgd_t *pgd_alloc(struct mm_struct *mm) extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm); -#define __pte_free_tlb(tlb, pte, addr) \ -do { \ - pgtable_pte_page_dtor(pte); \ - tlb_remove_page((tlb), (pte)); \ +#define __pte_free_tlb(tlb, pte, addr) \ +do { \ + pagetable_pte_dtor(page_ptdesc(pte)); \ + tlb_remove_page_ptdesc((tlb), (page_ptdesc(pte))); \ } while (0) #endif