From patchwork Mon Apr 17 20:50:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13214586 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 B474BC7EE26 for ; Mon, 17 Apr 2023 20:53:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 38C37280009; Mon, 17 Apr 2023 16:53:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 31408280005; Mon, 17 Apr 2023 16:53:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 14053280009; Mon, 17 Apr 2023 16:53:26 -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 E418E280005 for ; Mon, 17 Apr 2023 16:53:25 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id C42CC1A0759 for ; Mon, 17 Apr 2023 20:53:25 +0000 (UTC) X-FDA: 80692083570.26.E8DEE4E Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by imf30.hostedemail.com (Postfix) with ESMTP id ECDA080004 for ; Mon, 17 Apr 2023 20:53:23 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Sg9gXChN; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.172 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=1681764804; 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=pJ7hhxp14un8aFvEV1t8DEt/pla1/nGPIykgVubaidGkZk9aAZ3KfisHX+p4DtMWfm9lWP /G/Jfs3m2mz0ucfDM6PB+9j/et7LRT3sKyqyIQPFu+PehlumBe6kK2myYTvBx4gLfo1hMg 7BdaE9tzfav84DgptbRg3EpYX2lX/o8= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Sg9gXChN; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.172 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=1681764804; a=rsa-sha256; cv=none; b=R3gNa4Vl40oskRRvBKCP/dv0CKEymw/150m9GMTUSVcM/v3osr7D8oduNm8zFjhTTlKRv4 u00E7CjuZ+fOMFkcAOdD0XzZXsOd79RZfIwrUAuM9cY6k6/4z+VKEzu3HQXLeqZFbKEzLb bcVy27VaWt55+PSL84Ioz/xsb4bWD4c= Received: by mail-pl1-f172.google.com with SMTP id o2so27331019plg.4 for ; Mon, 17 Apr 2023 13:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681764803; x=1684356803; 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=Sg9gXChNrNLShRRgfwOKl/OTTCvmKSrllpuIiui1MavGQQvyi4/hV9+QaVJ3t9hABY 7LNyY9zC8MZPe/8uyGF6BwZFFCebqKsRkCF7WD2/MczVElNAeTdXAZoU8m9zjTh6P7Zy 0Ui6eydpR2I1tZyrhRUO19d2JsU/fHL/oyFe81PNxO86Jxw/ya4bgHlBy023YgAYk0Ea ro6AAOx594UY8fA/m7D7bEpjpZMo/caINuRe5NJsUpyuSeut+/oOBeuT5hXbXmkAYI67 Pav/++zqcV0Pbp5FUcdmVoTNUO7tgK9EwNCc3eK51W0dnm+P+Og2+jgMY/+82hRUmWz8 imHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681764803; x=1684356803; 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=GWYNvUFWRD37H5+EsLsvOgWgch0t2V4L+ltGWtD1nn5bzHV4CUAMXckeWIHtDbCwcP ul+0RdJjPQJ3iiiiQqvv5z5Mn5i4+pBjyo9czKQwrmHNpoT0/mMTb7UKV5vAVoZOHP4l gVvUtwjxPrB30Bstg8+iby4UiiUIGbmoa3Qwj5GpBoSOxcGZWTJ5TAWSHVOjQVsjqX4E k7m8njpDIP4nkaEfWxu2t2Y+mn04tVboSriF+BarEoqiLB9xEzmyd7AtWcRLquMXRf+f 5rltJY8ZKNZLAnF6qcuqjErbG9I6G0aKbKVKgB16+WwAIuLkfDkP2KhGkRt5XeajNpIe 5D8w== X-Gm-Message-State: AAQBX9cehLzWy7BCuY74W586g6+xKK5KlwxpMmB7mMnjytPnUCc0mv3i upTAnSZI58dRAb0zS/WcEKo= X-Google-Smtp-Source: AKy350ZH2s2lfJdxSYj+T2S9Ef0UoYzkgLYY3eeGq1S7Q2hAbd0lFGX52BFTYQkOd2khPVGSck6LXA== X-Received: by 2002:a17:90a:e28f:b0:247:4200:7432 with SMTP id d15-20020a17090ae28f00b0024742007432mr11696070pjz.40.1681764802858; Mon, 17 Apr 2023 13:53:22 -0700 (PDT) Received: from fedora.hsd1.ca.comcast.net ([2601:644:937f:7f20::c139]) by smtp.googlemail.com with ESMTPSA id h7-20020a17090ac38700b0022335f1dae2sm7609707pjt.22.2023.04.17.13.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 13:53:22 -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)" Subject: [PATCH 27/33] openrisc: Convert __pte_free_tlb() to use ptdescs Date: Mon, 17 Apr 2023 13:50:42 -0700 Message-Id: <20230417205048.15870-28-vishal.moola@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417205048.15870-1-vishal.moola@gmail.com> References: <20230417205048.15870-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Stat-Signature: y6spnkgjy4fm9n9bww8smaih76xfsspz X-Rspam-User: X-Rspamd-Queue-Id: ECDA080004 X-Rspamd-Server: rspam06 X-HE-Tag: 1681764803-310132 X-HE-Meta: U2FsdGVkX1+a7HqZ0wSWo9QNInG9UJZ5Fo4nZAH9YAa/gomUPlJB1lPAS4KClYZnppwf/4h1KaP8gz/CYJOb6BHXwqaYsJuhQZzEsygEbY32cOQAZnSEjw6d4xkMMVg+6dORoGAUM1tweVadXHiaEgqgO+/BHT5uK3Ikqv6fH+YhMGuv5DNXx1xRaP9DIiA8KhEm36pg9W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Us07Fst5Ngq9GKXacYqaq/Kjua1o5xUU0MXKNJhGkoi2e6tUJEpoJNkFqMozPa908LhiDSxmbYrYmPaUtEIITvijKEeQhZZj+NyUSfBZy9gygrDDsqh6QyZvqdHIe+1GGzV7dTW4V9l0pDkz3gc+vm6V9JMjHahCIDHZwzIKmKnTLFP0bLGXT9OfZ8CN67gh/lf6hPrgyiPhU98yfVBDFUScHHn85poNBLxBWkErr9U1Rh9e8Yk+SHhcrqL8niIGai674nxQY14AHPxQYJWwZpeRf4nQaHMb7I6EChxP0mqQFZ1doA== 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