Message ID | 20230501192829.17086-28-vishal.moola@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 7A393C77B7C for <linux-mm@archiver.kernel.org>; Mon, 1 May 2023 19:29:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A26CD280019; Mon, 1 May 2023 15:29:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 96A4C280002; Mon, 1 May 2023 15:29:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 82736280019; Mon, 1 May 2023 15:29:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 6F4AF280002 for <linux-mm@kvack.org>; Mon, 1 May 2023 15:29:16 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1EE1414070A for <linux-mm@kvack.org>; Mon, 1 May 2023 19:29:16 +0000 (UTC) X-FDA: 80742674712.29.AEDE8B1 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by imf12.hostedemail.com (Postfix) with ESMTP id 424824000A for <linux-mm@kvack.org>; Mon, 1 May 2023 19:29:14 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=sCYdFD4O; spf=pass (imf12.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.181 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=1682969354; 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=tniPUuVL526Jec1TVIaHRLAUx7OruO8jRIKlA5wqt8Q=; b=dbX5W82DAVyzddiMe85oT/aFzoLHfVgOqnvXQwQEQ8BqMohunci4vFfpmgNlrcvLQryPZT OkRqQ5f8kVjJHfDfZ2Jy5cPg2WTigJqcVelaCtG+2PUFmISd8jpVq/TOZ+LU40uXhJxqFA /rFr6XxiHk1DZB+knKqI3tcBaCedrr8= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=sCYdFD4O; spf=pass (imf12.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.181 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=1682969354; a=rsa-sha256; cv=none; b=TRzoiqTVt23D8rjrT/YFphWgaRoNAsHQ3vVDe1aqjbP9VKSvWMDDI1rb6aqAIhjCbo+Gqr Va5LBavQ3vHkfK60RAQ5A1JWeLtQ16IUWKtQRLLQzs6mndwVyPerUnd6mWldv9lPUgS9tk Mh3wvEv/D3iSMOLZnJk/TjLsorPSEnk= Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1aaea3909d1so17754445ad.2 for <linux-mm@kvack.org>; Mon, 01 May 2023 12:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682969354; x=1685561354; 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=tniPUuVL526Jec1TVIaHRLAUx7OruO8jRIKlA5wqt8Q=; b=sCYdFD4O8Had2jReQPDULWIb6jXMWTBVOP1xIsSQDJFrjK4Unzq4xPir2vv9xD60ba KhnmERHxh4wjne9PTfzHFe7mUKtGQVGSRxsSTI7oGHQc7fKexIRwy4BhAuhQWGLGw+L4 jhaBOvefDEjvTltxe1zcg9AOJCenWnwtbQvW8h9UKrmrEmLrYzROLydP0XMIyNyplCDF ksvZ9Q2L1rfMSznCSwk+WHikKvzxa7zVAjndA+MUieyvTGKh0Hnkx2VWar6ZLI/SEpj3 zJ2Emm1btVtqn0B7TpGayRWt9h4mLeUHtWruxn5Hxr1lyas/Ibpq/YOzX0vO1bUnoNNT ju/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682969354; x=1685561354; 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=tniPUuVL526Jec1TVIaHRLAUx7OruO8jRIKlA5wqt8Q=; b=ix3GHcsRLxpWgc7BwCpwQcChjtt4u8TsFwBgTykYcqMPrCed5Qn81bufMjoWVFc1Oy OyNA1qHtxBE1d5VjT77ObV4pErg7kwF7xrDEYFLvV4Y8VTypNeUpbyB9MZwBp8ETYdSS YYP+kRLurGAwtFLU4JyzImpwxq0pJYjt99t+djy6j+nYX8gxgZq5dsk3c4v7DHYFYjcN 9bDJ042NxFKpoR5vKln08hMTspyPRKTopiMZknFwEta+kEQwfWl9DL9VpNK0cwwhP09g 2vFc5oSANMmpNS3eyMH2bS8WM94dtwtXlXehouI93AEc9O4oLbiUjm6J2IZd6Xdh75mA gwGg== X-Gm-Message-State: AC+VfDxV+9KPIGQeKld6kvHoS6gyMT2+RYTxjjjFUi4sg0wFIoCqDKco iuoarja7SGSWHAn4EGXNS2Y= X-Google-Smtp-Source: ACHHUZ6fkDxKllaaORZgzXEjR5COvh0uqYIPMfHZHm801Tjdn3OT0QOppKb8hXtDeBwjumbd6cc2Pw== X-Received: by 2002:a17:902:c411:b0:19c:d309:4612 with SMTP id k17-20020a170902c41100b0019cd3094612mr20785827plk.6.1682969353666; Mon, 01 May 2023 12:29:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 12:29:13 -0700 (PDT) From: "Vishal Moola (Oracle)" <vishal.moola@gmail.com> To: Andrew Morton <akpm@linux-foundation.org>, Matthew Wilcox <willy@infradead.org> 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)" <vishal.moola@gmail.com>, Dinh Nguyen <dinguyen@kernel.org> Subject: [PATCH v2 27/34] nios2: Convert __pte_free_tlb() to use ptdescs Date: Mon, 1 May 2023 12:28:22 -0700 Message-Id: <20230501192829.17086-28-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 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 424824000A X-Rspam-User: X-Stat-Signature: n8umb71c5ueawixsyyp61p5h5zk4dixk X-HE-Tag: 1682969354-946976 X-HE-Meta: U2FsdGVkX1+nnAtQV9ttHoZydSUExZkg8YAz50wez1tWAcIaEhgPxXMO/dYa1CAv6FpdegSnqwIMdXTrIC9t+S8iYpgIl8M7G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xLZkcB8cMu4fdUtOVLmYNJNjDED96dcuTBxh7M2Xznm9O1Wc2PZi6LAy9fKRFoTqcSBy8G1moai/3ZXmFdMPurpyWWRVB4O/NxGEDJP8oqojmSZjhzm0XzhB3kuZykWmj3TdsHnE8zmRdnEw35BRC34Ew05IZLSp16JZ2P1vbs3zHgay3lTyOIi3I0HrXLf7XZ/0kk+dr8GUHQ0cf4o2uT4v4ywfzK4Wsfq00CfoE8O1GqncToW5bNi1UvUlY4QMjnokK9zDpOfzKx9V2xRjX/vzSLcseZgl7BwkW67f7yEC0yoI5fRaa5UnpKL5JQiFbjI386A8Ih2EoVpRJ/Vp4DaBq184X7aeU9z/4nMBnQwK3d/sXtmNcSQdPcKzP3lnyk= 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: <linux-mm.kvack.org> |
Series |
Split ptdesc from struct page
|
expand
|
diff --git a/arch/nios2/include/asm/pgalloc.h b/arch/nios2/include/asm/pgalloc.h index ecd1657bb2ce..ed868f4c0ca9 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 { \ + ptdesc_pte_dtor(page_ptdesc(pte)); \ + tlb_remove_page_ptdesc((tlb), (page_ptdesc(pte))); \ } while (0) #endif /* _ASM_NIOS2_PGALLOC_H */
Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com> --- arch/nios2/include/asm/pgalloc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)