Message ID | 20230417205048.15870-30-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 EA666C7EE25 for <linux-mm@archiver.kernel.org>; Mon, 17 Apr 2023 20:53:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0082328000B; Mon, 17 Apr 2023 16:53:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ED413280005; Mon, 17 Apr 2023 16:53:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C633C28000B; Mon, 17 Apr 2023 16:53:28 -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 A5E5C280005 for <linux-mm@kvack.org>; Mon, 17 Apr 2023 16:53:28 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 7E6A41A0759 for <linux-mm@kvack.org>; Mon, 17 Apr 2023 20:53:28 +0000 (UTC) X-FDA: 80692083696.04.4882A0C Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by imf14.hostedemail.com (Postfix) with ESMTP id B2E8610001F for <linux-mm@kvack.org>; Mon, 17 Apr 2023 20:53:26 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bMzg27Gq; spf=pass (imf14.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.179 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=1681764806; a=rsa-sha256; cv=none; b=Q4uIbyVOmTbf9hgld0Q/6u75NdJu4t4tdWojQfKgrF7vI/oYkVRuUOBHksqPRmFmNkGbUs bbsW/pXctsPILUmXX4wg4KdR/bj+dOFTHWQHxX1A4m3IyEK3ZfZLFkhYb8Se5564rRnR2U VX/4UAtCOapY5QPZM8BwSb67BekZGbM= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bMzg27Gq; spf=pass (imf14.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.179 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=1681764806; 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=1imWRfaXT28Tln454VWhUpR4BzNKR6UHESFdZqWEUY0=; b=wHbNglYwXxrZuWh1Tlnz4PHcS/fxolb9IVeb9Ry5UqS2u+eAhKsu4DuLiZjCg6KJsInGSA 9eDsDwFJgK6MJ6YIRLCj9LKwnGplZFWMl1uk8zwWpW0DATTK4iTSziy0vGCaus3Oa6JXit BLeQRiV1BypAEmnwmVHsDZMF1BPW35k= Received: by mail-pl1-f179.google.com with SMTP id lh8so14362212plb.1 for <linux-mm@kvack.org>; Mon, 17 Apr 2023 13:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681764806; x=1684356806; 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=1imWRfaXT28Tln454VWhUpR4BzNKR6UHESFdZqWEUY0=; b=bMzg27GqJpInZYbq5g7DlCbGyMQLVTO8/WaIXUjb9+Y1sP2Yg8U4pzTwcvHRDHiFNW xnksAVwNdJxrKURy2fgxnULAI227N9ToKvbiocqPRvOKs7RzP8ExmOpSZqrcqZUrdfu0 Ly3bYv1kY3GNKQVg3ZctvJCnyIezYAOXblSfIzPoK3U4x0lQOFf2Xm+WIvk4tnnJrN+1 YHPfjXznGMNehBha6m//o8BZSI/Chio1eErrXl3QeUgRmQPwnQk3cvQT2roiB3zkJZil tzHED45+1PigKvsFpmle9q7jl79yHSt/NZKlZjrviShfr3b19IL3cewZ6zZfWBjcahF9 kN0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681764806; x=1684356806; 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=1imWRfaXT28Tln454VWhUpR4BzNKR6UHESFdZqWEUY0=; b=PDJrxgbluEEKWIfHr7YwZMfPSiDZS6wIBpDm+85GZPr9Es9ONrEpaC1/IFM+ngV8oZ owGlQPf0vjIwGqoBbDrG3GPfu2OqHW55RFIQeKAugjnP9GUTsM8ot1QT1b3P84l8dzHy Mv5xwSd2NozgLTJZTi9/ajE/q7plk/0GRN5ZCLu+wGNd+JJXATdmOO5E5QDA6s9hCjJ0 kV6BPTLId7G+LqgVQGKIueWGd6NsDtz7NfSurYBvBNylj1PIsq3ae3Pup3hq2qvFf21T WvCCR5ECI0wLQSZeC1O/q6gNEbEIxiKCvhpvlZIJ/3Fg8IoSIW9dq4sMN2pRAbyHe0BX Iumw== X-Gm-Message-State: AAQBX9c5Xupik5bnkjlDUtr6da10qJd7Nrt0OeX3g0Qn6SkxRwQnYynr 9ooSYCnJcGwtdFw2islie6Q= X-Google-Smtp-Source: AKy350Z5+qBQNd0Z/JNfcMKaitdnDjfxbnOB0qE080qoviMZywL0T3VtP+5OcGBInDjHaerFJSFHYg== X-Received: by 2002:a17:90a:d142:b0:246:5fbb:43bf with SMTP id t2-20020a17090ad14200b002465fbb43bfmr15902207pjw.4.1681764805699; Mon, 17 Apr 2023 13:53:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 13:53:25 -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> Subject: [PATCH 29/33] sh: Convert pte_free_tlb() to use ptdescs Date: Mon, 17 Apr 2023 13:50:44 -0700 Message-Id: <20230417205048.15870-30-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 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Queue-Id: B2E8610001F X-Rspamd-Server: rspam01 X-Stat-Signature: s3bickxs75ika79oheobzghdnxay5dcg X-HE-Tag: 1681764806-446858 X-HE-Meta: U2FsdGVkX1/y9sV06dQlmtuxGPIbedO0QdQ+zbHzGG9c8fuLGktLPYuOMpB885WZRp7q9+pvoTVpyTrF+iz576l/kom83P6UW6+gYtWrvb+TQKfa8W3jupfL677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eYOJ+WWz93mE/eeOqGYDd3ep6a4EN0Zo7ypb4li4hejZPj/0zNx1gqKpe7fChLjrcLFQr/j6QrjVEAtvBcFmwiEMM0g9V0NS/Xg8qF/DD+m8KRpwF+vsdeHYLbIN6H1lxkXD7WzAkW389NcxBGXbrhU391ScNML1pCiN2yJr8+AfGFY8mPvK1Ti/bqwJ7S7vUw8DAHBLNVcU+YA7mynRR7kVPsPZTYa3UFhjOTLCwUTntRyZhvpeQqyMt+X+7wiXwCQq5jZbHsKn3se+EpQNmTKRjxLGawGrFo6OK2oMbkfPBw3p8CxEuuaH1dd7MB+qo0xXszCsX6NpQqFC5BeGmeJNVoEc+0D9tnopqBD2PGUrA49gkf5B+R97B7CBc2Cy3qHyschhDivqrg== 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/sh/include/asm/pgalloc.h b/arch/sh/include/asm/pgalloc.h index a9e98233c4d4..30e1823d2347 100644 --- a/arch/sh/include/asm/pgalloc.h +++ b/arch/sh/include/asm/pgalloc.h @@ -31,10 +31,10 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, set_pmd(pmd, __pmd((unsigned long)page_address(pte))); } -#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_SH_PGALLOC_H */
Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Also cleans up some spacing issues. Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com> --- arch/sh/include/asm/pgalloc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)