From patchwork Mon Jun 12 21:04:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13277371 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 36C9CC7EE2F for ; Mon, 12 Jun 2023 21:05:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F165094001B; Mon, 12 Jun 2023 17:05:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EC71294001D; Mon, 12 Jun 2023 17:05:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D673794001B; Mon, 12 Jun 2023 17:05:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id C48A294001D for ; Mon, 12 Jun 2023 17:05:43 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 9B7211A0345 for ; Mon, 12 Jun 2023 21:05:43 +0000 (UTC) X-FDA: 80895327366.02.8826221 Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) by imf30.hostedemail.com (Postfix) with ESMTP id D0DFF80007 for ; Mon, 12 Jun 2023 21:05:41 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=qp0OZHJw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.176 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=1686603941; 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=QSGr1AIBRcRb+Ur7L3hOWyc2qTqn+mhf5/YLNQmZcmA=; b=CIlEU2TUixubUUuu2oHhrCJ+j6kJd8HLwx7G78UB7HepRL3YXVyi1WiMCgbXn8131DOXRq TewF9jNjilGti9dDRub9qZzcPaA+2tM8C7hFP2JrfnEkSxjS9JDbXBxBtHOKyCViLOm01h paOY5LKlj8nA01Lc2YLsMYjHeQpG7Og= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=qp0OZHJw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.176 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686603941; a=rsa-sha256; cv=none; b=0mRS+b/GmBNRPlIB010wScKiNRNJP/2dA8E1BPz0izJz4LFT8r6BZ71cnAlnQId7pyLw51 9Bn/XVUIIBIrWrjAkTOqOQlsth3KsfTfplM14CfbF/vKZY5NvVGccSCePuj4z2euKofhr5 p3XuKZthyauDUnD2nl//dIPt5PL6aoY= Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-56ce61769b7so31192307b3.3 for ; Mon, 12 Jun 2023 14:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686603941; x=1689195941; 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=QSGr1AIBRcRb+Ur7L3hOWyc2qTqn+mhf5/YLNQmZcmA=; b=qp0OZHJwYJBDFbnZ3ou1P2Ehue21X+g8zcdgyQxIvQy+nDe0qfAi0dHJH17SnCCz1g tKKUvfmw/BkCu2VWGVC9FTcKBTfgeit8iCuiiB2iFwBx6PIhFHMGEsTNb4ySvFT/d3ft wztSHCS6L0P5NyGlzSq35fcEZtgvv+BauybZ4ibvcrCUVHnGp/kHvLFHDT0vMZoFlpUX ovC+Ec8QSOvfx2fBvS9GXwZis3S10LP+c5zNsCcscOq3kZyLxngh/87tdHFT9B3GKdNj CWUudKrbpvmp3qcd3NPPZgIOvQGRSzySt8ja54VpNcHj9wUPZRrXlqZutJQePE3+1Opa Ut9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686603941; x=1689195941; 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=QSGr1AIBRcRb+Ur7L3hOWyc2qTqn+mhf5/YLNQmZcmA=; b=gbUsQotfZnyZKXx5UT2Tmc+cLJbXnJfWL32IFJQbzFxbYmc8vXG6eabvTt7zldlXSH 6dtrBzrZmO4XxrjBfpy2PIOw5sQEs5N2lk0t/fB2l5KlC8Ga+VQ6m1+tsi+y00AHD5hY 9RQDgS5DB1O03mpLz/QM63Y6O3RsHTq+3TITXEhchOrqhF8v4MsqH2QaT7aX3kqUwnNP mmUg+Wq6pMsCw16O0uQRs6KoeGQNL0ispwfnlzcAopH1Jp5kJuffqrZ89FFTJzvCbIBk Vsw/6qN+fSpDgX3D5GepYjXIMP12hEeNiWsc0O4prpMNgU5gwn0H074p0ZhGSO4HDiqY mePg== X-Gm-Message-State: AC+VfDx0E1CDhLackiLjqfGh6W8nI5uruke8k/UuoJMoC8eDHBIxcXwD fM4UpZjpHE8goGVCg+vR3NU= X-Google-Smtp-Source: ACHHUZ6f4dQwcKAKk/nBaLFqSfud3ZdJTCw6E1GbyeLYv9ZLF94Eu4p9/l66ZpbQ0joORm5hDbfhlQ== X-Received: by 2002:a81:9e53:0:b0:565:a081:a925 with SMTP id n19-20020a819e53000000b00565a081a925mr2763652ywj.29.1686603940939; Mon, 12 Jun 2023 14:05:40 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id s125-20020a817783000000b00569eb609458sm2757115ywc.81.2023.06.12.14.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 14:05:40 -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)" , Dinh Nguyen Subject: [PATCH v4 27/34] nios2: Convert __pte_free_tlb() to use ptdescs Date: Mon, 12 Jun 2023 14:04:16 -0700 Message-Id: <20230612210423.18611-28-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230612210423.18611-1-vishal.moola@gmail.com> References: <20230612210423.18611-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: D0DFF80007 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: uehzd7x1ppf88yuzme3f57znwyttrs4c X-HE-Tag: 1686603941-488905 X-HE-Meta: U2FsdGVkX1+mqWa/Klazzrfs2Jpbmel6NMhCTbFNRa1SY1vldYUv+3RUIqcuhsLjvbcVpDpCLkepEOI/hrdpdErdcvbLNxCqrDD29SIpOSh3Knsz45gMJBnQTGqQXyWH1eI3DS0nKRDPAXB+Gf1pw1+niP7da6XxFgg3Mf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CfPz0ift+9luLposRHClkp2gQ4oZgb34JNE1UFzk4MMu1NGEGi1wSBtmGhyhn8trhFzw6DsQBpePSdDbS1K/1IUmwZB0WQkM0374pVWcrAJjJaMBO3qukVb2v9mXEFvt2Sy9X87/Fmj3CV3Vtoo9nuRPAhdS5ZCrGZv2PrF5dVW3LF+0g9blf4B7xZ2nOn+BQYaIRHrut/j62V0FOrv8NEpHi/7Epj9MPk4hZl9GURT++sdgWj3s7tyEZwEAm9/bG5yQ6VcneDGRPsNTCIYcNW1dvDb19A83vn6ddcGXlS6wnzr6Y1m12p7taPDHdkgYvsQvrnG1Wx6DMVhaMbhIoQ= 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/nios2/include/asm/pgalloc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/nios2/include/asm/pgalloc.h b/arch/nios2/include/asm/pgalloc.h index ecd1657bb2ce..ce6bb8e74271 100644 --- a/arch/nios2/include/asm/pgalloc.h +++ b/arch/nios2/include/asm/pgalloc.h @@ -28,10 +28,10 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, extern pgd_t *pgd_alloc(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 /* _ASM_NIOS2_PGALLOC_H */