Message ID | 20230417205048.15870-33-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 93471C88C85 for <linux-mm@archiver.kernel.org>; Mon, 17 Apr 2023 20:53:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1DF0290000D; Mon, 17 Apr 2023 16:53:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1408028000C; Mon, 17 Apr 2023 16:53:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D750690000E; Mon, 17 Apr 2023 16:53:32 -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 BED2E90000D for <linux-mm@kvack.org>; Mon, 17 Apr 2023 16:53:32 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 9C29E14016E for <linux-mm@kvack.org>; Mon, 17 Apr 2023 20:53:32 +0000 (UTC) X-FDA: 80692083864.02.63A19CF Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by imf28.hostedemail.com (Postfix) with ESMTP id D22AFC0005 for <linux-mm@kvack.org>; Mon, 17 Apr 2023 20:53:30 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="RTJID0Q/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.216.50 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=1681764810; 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=cEi2TglW3y1jV2dEhUGeAyisMu/LHFMX4M2p2rZqdYK9RxUhz+7lS+U0fEyRDq5lpZQY8x +thdKrX3WIvW7hoGSGLLQ/sKuFik0zpcgxTUleeIjYCXm4tRNRWQMERzBh7jveviBg4WnQ D5mB2OhC/KB7RgwWA+EMohQe/JWyY9I= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="RTJID0Q/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.216.50 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681764810; a=rsa-sha256; cv=none; b=biKIEsHK1IhN1Frrp2HQvFN8Myh+wHpHqIpGKaUd6UwtuQBzuQwsMTMpKfhoOu7HeAnUqt ktiSszSETPY4z/FoGDOwrFTBTL8arDTRTKeCgmPe0POyxkFXgeLtxeKttC8dcVePcEG8uX Z67n0ksqKso6P+lK2pWJsEvsRzvgwIM= Received: by mail-pj1-f50.google.com with SMTP id v21-20020a17090a459500b0024776162815so6442165pjg.2 for <linux-mm@kvack.org>; Mon, 17 Apr 2023 13:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681764810; x=1684356810; 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=RTJID0Q/WW7iedj/afuCWToOfH/aBrY/NrWNeyN7ByP/usee9y9Bzy2eV2Pryddh5k SgN8rXjbYlFESamvA2kpEGUYeNDAEQAcb5DBJGBzqZ39H1PUjeRb3TeWmdsscSkj+duB XdhsoeufQBiAlQ1VDbbJWcUzg1wdK3pe72OAkzLWRjQ1C0S075Nqq87qXF8IdfaSlDxW +Bud3Bjv7jwgjZOfa7R1sSZhrnf0y6c/vZkSvJ9Qym0uRrXk7trecdbr2o902twf3Tei jaw/7g2aCCpoNC5Ttid57NGpw+n0jzjqhu5TM+KCbKbeUljRTtHuGZwGu624c+XnB9eN r1BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681764810; x=1684356810; 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=TFRE/uAfS6cUke4hD8s0nJOh5g+SSnJrJrofG/ABgT1tm4uMktOtdvaENSoMYDKQzE hEsGqSMxZiX7UKQcHjpl18CLCul0CNMdXcyribURZC/ak/xGz7nkoVHaCHVM/3KZ1UQG aaUvfStmTYloBehDkK5JrujyW3ZAdHN33dFyxWruhli4l6keYtvg2Rku68BPjwWJ2zeX ZRkDfAR00gmLKj6SKG/quhCuIUAml0SEDSpP6KX6c15oXWAcbSuGzhCBvJ/F5b4j7Not 0N225hyrHoQPDBZlegkyrLTErfLX9J52itY7tJZcJPxFdIhuB/Ey6nrDLmaU76mGG8JO FdWQ== X-Gm-Message-State: AAQBX9ff2Eo1tR2wlmX8eRkOqJ1UtOw7/QC4mHlkJkqhHSQrzeRkYpTD OILEKnw8gKPRkUT2uttMSWk= X-Google-Smtp-Source: AKy350Ygryz7WWGm7uHh1637qBCeDzWZK5X9wTShPkAHp+hvTpFfVrAPSXU4dDYY+IJtVCH6njxkhg== X-Received: by 2002:a17:90a:4144:b0:240:973d:b436 with SMTP id m4-20020a17090a414400b00240973db436mr14169767pjg.49.1681764809815; Mon, 17 Apr 2023 13:53:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 13:53:29 -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 32/33] um: Convert {pmd, pte}_free_tlb() to use ptdescs Date: Mon, 17 Apr 2023 13:50:47 -0700 Message-Id: <20230417205048.15870-33-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-Rspamd-Queue-Id: D22AFC0005 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: zszyfqbs8fd48fxnbkbx7xk7gws1tsbb X-HE-Tag: 1681764810-434312 X-HE-Meta: U2FsdGVkX19fUd+QGX5XyCZVMT4S48BGVqGTtfZRy5wezp8+vSwBYYs0vYAG/31PRNrV5uJHB+g8IppA6rXh1XZ6/yEflW4avfEWF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JODLV8gMYTJVXYlLJuvczhjjb29E8ijBLYGazIKr69vpW3myhi0ju75Bf+irim3bVns7v8jaZal05TjzMQHckcFHCcjhLft8CyuC1SkT0scU5FMbq7Lz94Zx3Na4xDWLqeQAqObCkWOiISX9wHnbOZk0QSgrC6JVk2H2wxBu0HWW7rb2UjqZsz9SoT/C+p+GkUtl0HsqKATnaQPQwUJ5kNdIHIVDivle+dR7AszA2B+Ktp89Kliz/OXwlwczHClk2FtP0pIuloRzcNuEylcsAj9cTdvM2GOILaPZruqX0PQTJhj2mdU9MGK7eZfc9kLNb7g5s2J1IfFH+Okg8QACshw9UdO2X7eqWJXjCtkTOTCrdInwuRo9XYWo/6hn6K0z78nt09NYuW2P0jA== 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(-)