Message ID | 20230731170332.69404-31-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 999CAC04A94 for <linux-mm@archiver.kernel.org>; Mon, 31 Jul 2023 17:04:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9FFA828007C; Mon, 31 Jul 2023 13:04:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 98C6128007A; Mon, 31 Jul 2023 13:04:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6553E28007C; Mon, 31 Jul 2023 13:04:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 50E4828007A for <linux-mm@kvack.org>; Mon, 31 Jul 2023 13:04:43 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 20258C0129 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 17:04:43 +0000 (UTC) X-FDA: 81072531246.04.3690A5E Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) by imf23.hostedemail.com (Postfix) with ESMTP id 16CE6140020 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 17:04:40 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=fypnJ8EO; spf=pass (imf23.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.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=1690823081; 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=JRfRtQSkmDpdaHgWU+x8J8rVDSFtmuGYMRjnXDV0vQY=; b=wahflcYyRZ/48ouTFl17ds3Q568rYgpPl8qgEa4joocjR5IZ1UYVRW42QJvyvYUQNOdkG4 t3n6FF4ZLRzG7mTAKrpQzBq1o3LTXT+paWdly6Ad1Kizc6mtsQVjPYjFX6X0EZ9E1vkTCv ZMc4ngXiq83YSA1Ck58W36n3EODjfyE= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=fypnJ8EO; spf=pass (imf23.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.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=1690823081; a=rsa-sha256; cv=none; b=xeObvO91cPiouf2ouzWXiiTvFYiI8iMThsAiG9nhAjwe6MY16nJ+lezwRLQ7cOfIpsip4t npRiNTZ1Y1QBlePH9nkL5O7xcnOsKgWK0J1qtsMhROCJ9W/8HlkONHIAkVRFUw3ebh2OlX 74OdKqPVhbCvLERlmDtyXI9vH7ZgliQ= Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-bc379e4c1cbso4878960276.2 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 10:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690823080; x=1691427880; 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=JRfRtQSkmDpdaHgWU+x8J8rVDSFtmuGYMRjnXDV0vQY=; b=fypnJ8EOp6389G/yrEsdiBw8+ODFJB18UGVsK1WnMmuuyVJGZEMRFzagFIz/t/iUP/ 2hQUC88xrJTr5zC02f819WJdC4SisRLoHgth8vaUsDxgglJhi6MHYK2vk4aVYQFhtjHu EJ82jl2MiLVTmBE59Pwb2ZF5o5qt31wsfoof30f3jCxfq5PoYDaunPmGz2hyM4ah/4KD ydzqEb1pNZ1YIAh6SsOFxKI8oa6yw/2SpcLuoX5OxyBAJ0szyfenY4ClRYrgeaYLOg5P lgJjKay9Zm3G6SxJT2EV+hC0IYmKARvYedORBaKi0opdpa/X1F5LwQzjJG/maSgO9ToG 3U/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690823080; x=1691427880; 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=JRfRtQSkmDpdaHgWU+x8J8rVDSFtmuGYMRjnXDV0vQY=; b=UHaqSRV1C2hIdu0ypSW39lqGVLjUcWl7Gn+gQRtXURYsCxuRBmmG3cogxeh97p8o7d Jp48hDqGl296RgJWkbBWaZE+J6BnBoYhYXY10jY7Q+6IGD+kepy1pJPeB/s8xscyrIVe iOfz4yZSrIXG1YLajEOOgLNE9wwS4W6xWINwV+47a7cSDGgIho+g2DOH0jMkswi2Re/X 7h68N51y9fl3T07se/Sr2fkZgHBbpgAHrJEG62M4qTpZLIwBUiyEq2mbNMU3oWTqaaLN /9vmnEW4MP2oadbnoaRtz4tpXm22GfCORTPx48+6LzJ5Gp5fefjFhQlT3vnOSmrv5kQC iE3g== X-Gm-Message-State: ABy/qLa8Q+g3xUrckhH1EBZDD8Y8zYZL8FbfeoxAHMpjQNls2HKw0cm+ sY/bXiOkWiO7ITOgZ9rHiVk= X-Google-Smtp-Source: APBJJlEdwhqcmTMrEtHQGs0fafmxeVWw9ywX+xXLwsxfbs/EAm9tmHsbV10DQDaT24PRZb9zbh9R9w== X-Received: by 2002:a25:aca8:0:b0:d0b:2ff2:ff8 with SMTP id x40-20020a25aca8000000b00d0b2ff20ff8mr11589261ybi.21.1690823079964; Mon, 31 Jul 2023 10:04:39 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id x31-20020a25ac9f000000b00c832ad2e2eesm2511833ybi.60.2023.07.31.10.04.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 10:04:39 -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, Hugh Dickins <hughd@google.com>, "Vishal Moola (Oracle)" <vishal.moola@gmail.com>, Richard Weinberger <richard@nod.at>, Mike Rapoport <rppt@kernel.org> Subject: [PATCH mm-unstable v8 30/31] um: Convert {pmd, pte}_free_tlb() to use ptdescs Date: Mon, 31 Jul 2023 10:03:31 -0700 Message-Id: <20230731170332.69404-31-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230731170332.69404-1-vishal.moola@gmail.com> References: <20230731170332.69404-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 16CE6140020 X-Rspam-User: X-Stat-Signature: h185gbg97h6g8xwcz51t3m556gjkb1ok X-Rspamd-Server: rspam01 X-HE-Tag: 1690823080-696393 X-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wQgeTGjNiy4980A3r5vTNK7/PPnSTf3mrzlL9OCX5GqTVCgUIz7OOEg15jsKXnm3GgYRmbIQpji/sT3Ji9prmNP9V3i0ikEh407TPjcU7Uv+saQFaU3b3GB/NVW9N/FMhr060nfvR+ED8EAyoACfcyPuqChqGa6j2/WVOe2eRjUAFhg0WTiz0XUSCy1A89/G8WtI/9Ml381LiCwyvY0rjL/Wq1gvomoAU0AHz/8qni5leYQVJH3Bb+hhygYxI9sJQqGuy5ElOZoWRCK6ZsLhhELrbR5y/ffuefVqKSvrvEFF1HZnSc/hj3uHkwiXpmnUyKx9rOJeGXcA0f0nx3zkfd+Sgy2pMtxg/TLC58DFuBtwckm8aM0Bn5mvJCxmYPlS1m09cK0EphZnKENJu4ZPLgqz4tCWEfuHBP/A/NB5LZ1y+FipdD8pbxLOHhiTWRWOP1JL0Tc/Jr59DV79amJFXXH+TTurVDpSnWuDLuE96kHDl/RBRGt/1ORAoL0KTlvU9MXQKDVqLxnfFshcwZyBA7HfryWvvgiiCerVvgr5KTOXlQmSU5DB4= 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..de5e31c64793 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 { \ + pagetable_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 { \ + pagetable_pmd_dtor(virt_to_ptdesc(pmd)); \ + tlb_remove_page_ptdesc((tlb), virt_to_ptdesc(pmd)); \ +} while (0) #endif