Message ID | 20230501192829.17086-34-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 9A535C77B73 for <linux-mm@archiver.kernel.org>; Mon, 1 May 2023 19:29:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BFB3F28001E; Mon, 1 May 2023 15:29:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B837F280002; Mon, 1 May 2023 15:29:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D55728001E; Mon, 1 May 2023 15:29:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 7FA72280002 for <linux-mm@kvack.org>; Mon, 1 May 2023 15:29:25 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 5CA78160729 for <linux-mm@kvack.org>; Mon, 1 May 2023 19:29:25 +0000 (UTC) X-FDA: 80742675090.17.983300D Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by imf26.hostedemail.com (Postfix) with ESMTP id 7D46C14001D for <linux-mm@kvack.org>; Mon, 1 May 2023 19:29:23 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Q3jl6Ytt; spf=pass (imf26.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.182 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=1682969363; 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=m8/b+eKq2obnq3wrn4AaChyOhPXbZKipyE2UTOB7XHg=; b=LQgnJdt31lZzDP9hqmUHLM7lbbOAzeTB7tO0MRzeMH7uP9DKnT7mUl0NPuWV9dlitEZzAF N3edXotqmm9RTIOoOTazP7yBBN9YRIXSFm1VZ3iPJ8Zh1f4ZSW2EyQ7EgjZvyY7fkYNWZ8 /qXPjX9qrTwq0av6GiAxhtVyESYSIeo= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Q3jl6Ytt; spf=pass (imf26.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.214.182 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=1682969363; a=rsa-sha256; cv=none; b=MgaVmjxoLcc997piaEB3Hz2AIYD+KbayVgtYfhl+xXsb1Ai8zHr+wl7Mbny5cz7a9zUZUT NVwCM5i8LcvgNA9yeDvemEhJyG9QHF+puU3IVJo/DXtjMR1AYA0cZZkSk8IXFkw8Gv2VeJ Xjt3dq7yAOgSHkdTmyJCwTJ0gvOzjBc= Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1aaff9c93a5so6146005ad.2 for <linux-mm@kvack.org>; Mon, 01 May 2023 12:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682969362; x=1685561362; 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=m8/b+eKq2obnq3wrn4AaChyOhPXbZKipyE2UTOB7XHg=; b=Q3jl6YttJDwUuWKyn1dVs6I8W94SFWxxciTJdLpT/LELBYCeGyev+ExIC9w29x2Yt1 zXHIDz5du52vN2frCHR+hIpcwuJ6c3WNhfC/Gsy1nS14RuXHFXtXj5G9xq8KbaH8upCB hoZ+KR9ZQITjkQA540sZmLX6PX4iGNe7NpnWG1G2AsO+NZdypSRuEfFuzqh0wPvQQaGw 4XpO3Q1D/iCtA92s97XY1Or0L7GqG2SHJxpwKx0yuxfIbjPslNXarskrtkCCtU8UwW5x DSxt7iwfG4oFpxWasaAVqe2jz7cH5xxqomQxklMjhuQacqvGLIa7+5cde3ROrtfKL2NP oDNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682969362; x=1685561362; 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=m8/b+eKq2obnq3wrn4AaChyOhPXbZKipyE2UTOB7XHg=; b=UAo2uWhTaJoPqs3SR5Xw7+7+pRkz37X0r3Nl67YV28rE0aG6pbZdzyABlshU2e4qkh LESx4P7PfSu0v4ij9/BJ2ZCQ+unHfSXUrx7fdK4JOK/aYnzvHH3UE4jV3pKGjs/x9huy /jAfkrmHDzPsksoohy+cpCluUIJS/TR1qii7noHIjRsjSv1j87lseei7/g6dZcSEHJyw iVdt3z/r0xlN5uQ6UGy0yCrLzW7dNO3/KnpIFadxIsir65fTI4ZV4BKJD4VwLDlr4TvZ 3BFkckOuWYuR84EP7+G9VZ1rr3QtJzXP+QUnQW6CjFTF2xrdGDNllbZl4VHrEhK+sLLe f6GQ== X-Gm-Message-State: AC+VfDx/JvTo+kcsNvrKyyuU75e90lGkmtRrWR0oe5P0l1uEdvYeLFyK nG5QYBoRHEj+EbYS2CKMsw4= X-Google-Smtp-Source: ACHHUZ7SACaylL3/aSyKhkx7S2g1HYBvFG08B1pme9nPnu6u4pSNBbJS188a/Kq3fbmOV3eKOsv72w== X-Received: by 2002:a17:902:db0b:b0:1aa:e5cd:647a with SMTP id m11-20020a170902db0b00b001aae5cd647amr7875588plx.23.1682969362180; Mon, 01 May 2023 12:29:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 12:29:21 -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>, Richard Weinberger <richard@nod.at> Subject: [PATCH v2 33/34] um: Convert {pmd, pte}_free_tlb() to use ptdescs Date: Mon, 1 May 2023 12:28:28 -0700 Message-Id: <20230501192829.17086-34-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-Stat-Signature: bnkyw8r4ium3o6xufgqbnp79wg1hxhip X-Rspam-User: X-Rspamd-Queue-Id: 7D46C14001D X-Rspamd-Server: rspam06 X-HE-Tag: 1682969363-797980 X-HE-Meta: U2FsdGVkX1+lH2c2Odtz6cCqwiuKv66wm+45786LtBdwDdrJGL+lcArFKNZIBUZbI5E0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9ZefEhtwevVT3tcz9nFu59ZUH6y8QqPg4vUZ7YzftvOnQz3dTQK26LlIX+X5wjv4XEjwRRAq88rCEmwPsvNKoRmwTA6S0m8+54gzFuG8ndGv1bu+SFxu8MzWkOQ3ALtbad2bYLGoowYA2cnjgQF13h3MGfwvQLxF5vev41U2M+5EQgoY7z6IXLklgJHOsK6nTD2EnOJgjEr32ny9YI+P4DHiJrE6OJyRWVi3bpnDT0BkgTTE9/DslULuVQLCx7BomXDDPBUEQMhP1bi+Luz56ZPQtvVYr6jZaKnvOlxX6yODmWbjnibdKkG3t3QZwYSikVys+5avBm5G7o7sNz1ie8alyeUvVFGytPD+aJkDztq/pT2susp7VpzBfZJlSiucRZv8m5+6sA346Ow276aEyIH7mXm381dOeerauOT5s= 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/um/include/asm/pgalloc.h b/arch/um/include/asm/pgalloc.h index 8ec7cd46dd96..760b029505c1 100644 --- a/arch/um/include/asm/pgalloc.h +++ b/arch/um/include/asm/pgalloc.h @@ -25,19 +25,19 @@ */ extern pgd_t *pgd_alloc(struct mm_struct *); -#define __pte_free_tlb(tlb,pte, address) \ -do { \ - pgtable_pte_page_dtor(pte); \ - tlb_remove_page((tlb),(pte)); \ +#define __pte_free_tlb(tlb, pte, address) \ +do { \ + ptdesc_pte_dtor(page_ptdesc(pte)); \ + tlb_remove_page_ptdesc((tlb), (page_ptdesc(pte))); \ } while (0) #ifdef CONFIG_3_LEVEL_PGTABLES -#define __pmd_free_tlb(tlb, pmd, address) \ -do { \ - pgtable_pmd_page_dtor(virt_to_page(pmd)); \ - tlb_remove_page((tlb),virt_to_page(pmd)); \ -} while (0) \ +#define __pmd_free_tlb(tlb, pmd, address) \ +do { \ + ptdesc_pmd_dtor(virt_to_ptdesc(pmd)); \ + tlb_remove_page_ptdesc((tlb), virt_to_ptdesc(pmd)); \ +} while (0) #endif
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/um/include/asm/pgalloc.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)