From patchwork Mon Aug 7 23:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13345309 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 6579BC04A94 for ; Mon, 7 Aug 2023 23:06:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CF9E594001E; Mon, 7 Aug 2023 19:06:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C8228940008; Mon, 7 Aug 2023 19:06:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A607E94001E; Mon, 7 Aug 2023 19:06:12 -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 8A73F940008 for ; Mon, 7 Aug 2023 19:06:12 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 64795A02A3 for ; Mon, 7 Aug 2023 23:06:12 +0000 (UTC) X-FDA: 81098843784.18.DA59AC8 Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) by imf13.hostedemail.com (Postfix) with ESMTP id 916DF2002D for ; Mon, 7 Aug 2023 23:06:10 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=GmyaVraw; spf=pass (imf13.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.167.170 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=1691449570; 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=8XaHpTf3P/utbT17OPG/H5MolPsiYyRMVXSdV5AvoHU=; b=EQpPTz8QeFvE111nUPrPsGW+zQOTjn1IB2/Nrg2+NJC/ZA+L2GjbYEeuE9LqHCr61+uMfD 77ciAiFLy0sJYGUYZy/SkjfGdg0+iK+N6Fyx0/f0eVhzIYbRxiCaGhR+G6hW2s8xsJ6nYw vIfeOQ4e9psWyT+GoP6A9tCA4/pLl90= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691449570; a=rsa-sha256; cv=none; b=cs6aRcTkIzmHdUvP8Hibhw7mS8eI6YzUnuYPvyaFpHi3C7bDAlmbcz/PeCjwrJyv1UNqOv TuWRZmzqovzWLIFLLaWNJUj0NkigF0rgbM1ia/wM56zqU52qj+nrysa2U/oqOCfnHF6rW4 Bu3rqdWP15O+8thNPfMroMw5l8KO+MI= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=GmyaVraw; spf=pass (imf13.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.167.170 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3a6f3ef3155so3973632b6e.1 for ; Mon, 07 Aug 2023 16:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691449570; x=1692054370; 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=8XaHpTf3P/utbT17OPG/H5MolPsiYyRMVXSdV5AvoHU=; b=GmyaVrawFabDS7oM/FJ2wsqOTnvNiSZkWHllyllBSGtBhNSpEmhqjU2xmr+48gvMwO LUXnCk58UhmfTImv2R4R9LNF0+WlzxXIVQ4Y7ZC5fEeHoGrn0o/ogRSADB0Y+NluFrtN MrrlZ4Lz/gi5878wRIWP06wgFFKVx+8i+ghKFpBHekPx9T0p+3sqj2xh34rznNB4nw+U O7FH+uzt41O2vvO9FAauF/idvM9r4rw7Q35Wwsa8GbYTT2MLxcQcKcfZ8291m/c55wrV URc64VPnBpaXKs/Bni+oDqsCjGnYy/ppZbjbVbnispVrc0PlqosfX2g85SuErvT0W1h1 o3sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691449570; x=1692054370; 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=8XaHpTf3P/utbT17OPG/H5MolPsiYyRMVXSdV5AvoHU=; b=EWg4LQGzVBXRi0o3X2uThsWiXh1iFXf2ofXXV3hQGAweVdVl+eynxO7Q4ZV5gvwwhN zb4WFUXfmt6AW68iUS+rm3vmDeThU0AnWEN7ZBp4yFb9eYG3MTI8p0vflu7iP+rKEDAJ BY5KyQKJS0x5hKBucr06jFP895BFr/RkYRBElHmHdFo/bj2bzIZ0M3ESplpli5oOxjGU YsYlP42r8eUrYmYOcg2GdCvB+LKskwTBWwtANltpAtxQNZY726MLFCX2lnCk4COdlZmT FnKf+QWAIylzTDzFcCy6QL9czcivEZAQmM7lKNpf7pK6acnvnnZO4lVK8d6PrM/ZggNw 4z5A== X-Gm-Message-State: AOJu0YypDzOEkBK2orxWd9kR7l5ZLtBobhaJM5QHfG0XG9olh0cl7xXR xywc07Enya/JN3DMwxyppOU= X-Google-Smtp-Source: AGHT+IFfR71b5uGC/N7nUJvkV7EEf+q4ZrD/2jbgt4p5+XAZUesJuHroaMR2T6Qu+08oLKK4OIq5Tg== X-Received: by 2002:a05:6808:1997:b0:3a7:5314:e55e with SMTP id bj23-20020a056808199700b003a75314e55emr14747526oib.24.1691449569767; Mon, 07 Aug 2023 16:06:09 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id d190-20020a25cdc7000000b00d3596aca5bcsm2545203ybf.34.2023.08.07.16.06.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 16:06:09 -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 mm-unstable v9 25/31] openrisc: Convert __pte_free_tlb() to use ptdescs Date: Mon, 7 Aug 2023 16:05:07 -0700 Message-Id: <20230807230513.102486-26-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230807230513.102486-1-vishal.moola@gmail.com> References: <20230807230513.102486-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 916DF2002D X-Rspam-User: X-Stat-Signature: 8q966pwmkkiqz5h7e7ung4pyi1trqs9z X-Rspamd-Server: rspam03 X-HE-Tag: 1691449570-449722 X-HE-Meta: U2FsdGVkX19vTazPcRfsZyNQMVIWYTMruYifj3yh/wdS1Jf4k5XbU2NdWqaNYzaz9lZGj9I5rpU4qG/KpbnhwuJUtZSio6/IwzjUJ/GRZfGpV6QMBuUyL75eQjOgMAggFkc9iIUVyDbGp5awdYXyMUV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+eF9wDGqRMe0yf9dKXkT09CbQumXkuNEhTeD9FT3MlhqiQKFBTGFTUKVJLrXVZkFKRkfb5dxCOYYHyAaYw8Kt7KUf44r6NyOvDd72LlPVG9H7i2mBlxtTLevl4qv4R/ogrBshqAlIQecP4kzYg38s2h0jTeg0p4k58R2r5EsY9HYjvPP3pTnqlu8QNYJ4srYuIkop0DVL8yIc9aH/uGXx2vgT2/Bi0Pyr08HeI8sUUkFctZLwO7RUg8wIKGxV1GFHiCn/DMLaOVhHXkaZvPHYcQtkQ6FszauCPL4qEdA11qJdVF+ZkIHO8sNy/QUyR5NaBmddRS+8/1E8CKdOUwHLcLXdzJhUDVMq8/Hj11hRd1qKdDVT0Nsf67UpwyYZJdASHwxIW10HgHwPMIdzEN2Txchbg= 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. Acked-by: Mike Rapoport (IBM) 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..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