From patchwork Mon May 1 19:28:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13227947 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 4AC1DC7EE30 for ; Mon, 1 May 2023 19:29:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DD0A228001A; Mon, 1 May 2023 15:29:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C46B2280002; Mon, 1 May 2023 15:29:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B34D528001A; Mon, 1 May 2023 15:29:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id A5DC0280002 for ; Mon, 1 May 2023 15:29:18 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 8107BC05F0 for ; Mon, 1 May 2023 19:29:18 +0000 (UTC) X-FDA: 80742674796.08.B5ADC19 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by imf15.hostedemail.com (Postfix) with ESMTP id A0ABBA0015 for ; Mon, 1 May 2023 19:29:16 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pbOgq641; spf=pass (imf15.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.176 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682969356; 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=M2PCFvKq9JWcIC4Exd9oDYO0v0PQOHyXRap+yEgbOb4=; b=ka4qchxkkgHmheOQbt41FOtta+aMIQ194oFqYXxeK/YUlhRW4bX3S4TSyeyXtod0CHKvi4 LwVi1OkoOCHe94mwLyLAHwYtFJksAeMQ91ICk8v1k3g1TExbO+5ctzL0PV3MQkvEot4/n3 TD0YPXf9jCGanYuZUZy08X9Fs0bNsGA= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pbOgq641; spf=pass (imf15.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.176 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1682969356; a=rsa-sha256; cv=none; b=N8G/YGw/EAvcKEWZGXTFvoJR1V3TQ4y/Kxt3HDL6Irk1PqpXFkSNBolCkPaNuCyySvAUf3 M1O4024ZKdrjHRATcdJCIZgb4neqKwwiqMmR49DO1H83Z0shv/Hbu6lGlQCsFj8wwmgbBq PaZSu85siOKNomRqbUIWdnkHS5ErWB0= Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1a66e7a52d3so20941135ad.0 for ; Mon, 01 May 2023 12:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682969355; x=1685561355; 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=M2PCFvKq9JWcIC4Exd9oDYO0v0PQOHyXRap+yEgbOb4=; b=pbOgq641Q1VbKkWYpSKEOBTaJbK7N+gn3tPQxAnQMHVxsbuYS7d6gCFZWWRyAoJPvd QWBoalX7ztTkXy1/S77S44wUsaYiw+c9l0pjoAvj83RwanS2FHVDTD9b5yLt3dvSiRkC Y6FbuRkXeTez8mU8JwqFdJ8q3udPbLVyCGPniHNdmE3Bvis2G1N5Cf54GBHK19m19dh2 ECy1qDfhwNI4K2KlZeZKdUsb//pSuTNjtcr9BAZz+ZE7jjtZb0g8W7o+eLshkW2fWRhk rjbBHucvZ06kdc4e0Uijz1mCvV4V1RY1P7Hdmh8XbAUQYZvgzIuSpNmzClPaEZvw/eBL VKvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682969355; x=1685561355; 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=M2PCFvKq9JWcIC4Exd9oDYO0v0PQOHyXRap+yEgbOb4=; b=LnTtBS3zffCHO2qzAPr4DQwyjYf8uGOMstbo2hTvWJE/RGrvuPdxnO7DNyv1s5S+cC pR6N1IQNzl5ZlOlBYF/t2z+ONsQzlL2c3VO1Px1285UiPlGFVdIAKJmJ6pObw5vTUflv rlQvy6ZFLro6H9yVLQEBs75Y6lSIktVYm9sxlsG9OBsStFmBfYVSQN0aWWS2Gg82/SCw cUj4EcQ/PMRNRx/AfcAyGuGgIoCMIMhjB8OInrEtKG5SCPBjc8gjAVVnPrEhYFoNh54o RAuz/7oJUvxkdx8lhb5x0JXLOCTy5i93fvqW98zBmhnalqJhRr6aV0Ve5b+LaJDF4MBD /rGA== X-Gm-Message-State: AC+VfDxytjF3oK/whH2/bRAUg/ia/AqSbjNwteQjvOiqbPYo5bYbRrPf RFPsMk5t5HoYAebgdXRSJKQ= X-Google-Smtp-Source: ACHHUZ5aUwQpmXFq62IOwkeTiJiFUSz6Wt9PaXTxNdRH/kylJwLUJvf08r71LifeGRMo3EYnyRIKBw== X-Received: by 2002:a17:902:dacb:b0:1a8:d7a:9255 with SMTP id q11-20020a170902dacb00b001a80d7a9255mr17869996plx.54.1682969355424; Mon, 01 May 2023 12:29:15 -0700 (PDT) Received: from fedora.hsd1.ca.comcast.net ([2601:644:937f:7f20::9a2c]) by smtp.googlemail.com with ESMTPSA id u8-20020a170902bf4800b0019c13d032d8sm18175622pls.253.2023.05.01.12.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 12:29:15 -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, "Vishal Moola (Oracle)" , Jonas Bonn Subject: [PATCH v2 28/34] openrisc: Convert __pte_free_tlb() to use ptdescs Date: Mon, 1 May 2023 12:28:23 -0700 Message-Id: <20230501192829.17086-29-vishal.moola@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230501192829.17086-1-vishal.moola@gmail.com> References: <20230501192829.17086-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: ck3mabkopcqhrgnrx1hz6pwfyjut884z X-Rspamd-Queue-Id: A0ABBA0015 X-HE-Tag: 1682969356-42688 X-HE-Meta: U2FsdGVkX1/RFwawJYsB14UBOEUxe7YtvOcvbDsbCA5kXJq9uiU1+dwClz4SC1Zj2s3vNj5UMiyyf0yYf6i8AIRBtsA+FbaQB04iOH3yUv8E/Ipy1Rf1Xc5SczzGx8g4Xk8sCUP+cfv+uX3gCNTZKo7jFOCuENTtFIR1qckDpTwnN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OPBcE25fX1/QcRA8G1WFys7meB0XeeTPemkaa3SJ99XxLYL9Ovg6Qv1TgQ3p0bxLhOek6fX00ICjAek+4ijtheJNSpaMoiMo6zRFJcLREtHzdRtLCCaWoshmI9aJYvopxAb5jnwLV2VZANtijWl1axm1sABXLwrfNziK++yz5DT7AHeFqy0LLm5N8HMcrYG8G2u6FMpsGyvyxCt7X2TNK9asHCTYT8pXoztrzwKgf4RDbrifrvfecg/zOYXi8y95DGuQEGMeh5xJ2K2q3jxXD3DnUXlgEwspWRzOEyYRnMyklA3o4/9etWq8PMyriMDjWD57DGONU= 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) --- 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..14e641686281 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 { \ + ptdesc_pte_dtor(page_ptdesc(pte)); \ + tlb_remove_page_ptdesc((tlb), (page_ptdesc(pte))); \ } while (0) #endif