From patchwork Tue Jul 25 04:20:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13325738 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 EA958C00528 for ; Tue, 25 Jul 2023 04:22:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 590FA900009; Tue, 25 Jul 2023 00:22:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 54105900002; Tue, 25 Jul 2023 00:22:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3E094900009; Tue, 25 Jul 2023 00:22:03 -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 30412900002 for ; Tue, 25 Jul 2023 00:22:03 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 0EEE11A0755 for ; Tue, 25 Jul 2023 04:22:03 +0000 (UTC) X-FDA: 81048836526.04.E588C7A Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) by imf14.hostedemail.com (Postfix) with ESMTP id 19E9F100011 for ; Tue, 25 Jul 2023 04:22:00 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="pF3/aUrb"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf14.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.173 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=1690258921; 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=Th7FvalmnaaST8bwSHcclMIs/UvrAML2WX4HIpombKAk2KDJDARzRNnbvoTf+7fRQZq6Dx fGTj1adQcW1FxCmd+ziWLHpG0BprE7J7YHLAi74jOjA/ywK+s/31WHKtLMrrcRh+6FZZP1 9ZpZA6YKnxUrhV/+MF7LOmdFuMnl61E= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="pF3/aUrb"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf14.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.173 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690258921; a=rsa-sha256; cv=none; b=O0ahiSN4fgdaM+NR81eJ9E1sYWgfDiEU8aLNKNJDKMHHIJe2rmo1bvW6aiOTTbn+KU3I1j 6iVq8GWMbgz7G8u+ZaFKi2LjnWO6lwJWT5V51jluY38Fo+qRMGUYFm3C2LW2Wpds1wXh9F ehVZRahwzL4bAYMvvpPfd5m0Yh1kH5A= Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-d0e009433c4so2258234276.2 for ; Mon, 24 Jul 2023 21:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690258920; x=1690863720; 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=pF3/aUrb3JX49e0u22fW9ciATl7u+MUedSxMIodJhkvCSur2UbV1ymLo02TZ+J+kPF Kx5HeDHnWoCFEiMJQRkEFLmGeKvRgst1SRco5Nf2sutYKL2w+MtMEjm9RYoVaVV/WbaV YVQVPd7LOUuBtkmGFl+FmiiuwqN1u54q2lW5pHrezKOb3piONF3+v81Wt/4bQq44saNJ XmrP/XQPqOefJAz6PJqT1BLnizFGrc2xSl/LadxebvB7doG0PAx8D01yebNX4JhyxCLk tgaBucE6SVITexqLzDjpMrpbMyKpy8WP6lMzfEvzG49OmJW0+1GrWwpk6bQXNmC80wMv +HWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690258920; x=1690863720; 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=ZfeqAF3x2wZ6wtxSqjZP3mDdr3E7wZMfLgYPPw5jl7jWxwt8/QOw5Eb8YfAzt2pTqb JPETVSdIOnBkpLnhJUp/x0/HOJYqcwDhUuPOuCvT8Q3rcpRn4OXRn7pC+u/UZa+66RVV QZkF5aaPEcxjHu5W19+uq/Z9HQt3UV/6s9+sbBvQdFPzK7zNnyP4Q3jJrYXFDlg6CKT4 XXhMuaWeQvBPm1EWcBdSh4ka3QIaaiG2K3ffXi0ZPmQwzyDbczkoPgCEM2pDZUl6Mpot Me7heK/hHkeESlmKbo0xH9ny6Q8N7ALy6r+oNjxllC8DGM92aeUn8vqrrMdE//BHElgq Q7rw== X-Gm-Message-State: ABy/qLYKhBYTWt/LuEsdbKF3An70pah6mVDwJikZSjXUvV6YFYEiMQC/ MbrMM4lzI+VcoGVZplTgFjZmCf+fOhgvAA== X-Google-Smtp-Source: APBJJlEdkcahnNVyEvlWTLDmpaRsWSF5WciOnYxL0p0ce55MSQlJt+bgPnW2jeW0QxRihWyF8hwpDQ== X-Received: by 2002:a25:ac42:0:b0:d0a:da40:638e with SMTP id r2-20020a25ac42000000b00d0ada40638emr6436068ybd.12.1690258920108; Mon, 24 Jul 2023 21:22:00 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id h9-20020a25b189000000b00d0db687ef48sm1175540ybj.61.2023.07.24.21.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 21:21:59 -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 v7 25/31] openrisc: Convert __pte_free_tlb() to use ptdescs Date: Mon, 24 Jul 2023 21:20:45 -0700 Message-Id: <20230725042051.36691-26-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230725042051.36691-1-vishal.moola@gmail.com> References: <20230725042051.36691-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 19E9F100011 X-Stat-Signature: jupb5tfw1e8a9f8hwbpmmcjww693spyf X-HE-Tag: 1690258920-404710 X-HE-Meta: U2FsdGVkX1/JsEET7mqvl1pQuez5zSeWW6j5da4CpNO57IVKR1E35Y/NgC8MXVklACV7qyL44I38vZTkfWPWEGbeF+5HUgiWsXbnLVR5XIBBJ4QlXkaEFx2eezybduAd/zTlbdQGK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RDnXNR96o4VLB8NurinUGtkLeNGaFhgR0PvZLTRAD/rWceh8l8oSEaMswfhcOdwk26HmigL10aWfF9dEaulbdwEndmZ6zE92J+cJaqheCHKKXmZoNBRe8dAoN6rCcXVgHK80FhHf/V1bZ65f0ZOt5Pm9v+fT1jExllARyvXG5gEYxWb9MYv0jj0Y5oLAv3r1bQYYpKHlev0Yk4DXVLjH3vNvjsPj72Xx/Un6AxOta8FDsVla3v7ODFF4C0z3etE7uLk4i4IkTOC2Yay7QqG1SXqH3EZlc3Xgi0n9c4/c03+3O7NY4b3MiyAnb0amaFEXN0wShbN57jLMO0QqtADR6nGExGOL+7zpzFGJLSvUh21i6pX03HHNi30TP+wWxxeWotgkJIbNnwTD0akUaP/8ooUhU0g= 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