Message ID | 20230627031431.29653-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 484FAC001B3 for <linux-mm@archiver.kernel.org>; Tue, 27 Jun 2023 03:16:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8FAD28E0016; Mon, 26 Jun 2023 23:16:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 85C0C8E0002; Mon, 26 Jun 2023 23:16:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 688A78E0016; Mon, 26 Jun 2023 23:16:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 4D5308E0002 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 23:16:18 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 28A441204B7 for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:16:18 +0000 (UTC) X-FDA: 80947064436.11.556A38C Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) by imf19.hostedemail.com (Postfix) with ESMTP id 5BD651A0004 for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:16:16 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Gr8f3MEz; spf=pass (imf19.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.173 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=1687835776; a=rsa-sha256; cv=none; b=8faufWJULmyZX8TOye11yyM30XxoHLRZj5fDjLWOAarlHX+BUlu5ZyHltp2D3dChGmIKRw yY4FmQNeMU7pKiqLog388Kc/XBohBTql6Hy0JziiAp7fOEulpczve/spOk1mDjUOQrgLdW BIQG10RbN8jfuujB22E9jA2c0P02YPQ= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Gr8f3MEz; spf=pass (imf19.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.173 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=1687835776; 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=NoYI9Oj1KMXzci4Iy1edUacyH6UNMIZYDI2C4YifJ6Qbh2RIyVNZaa2DZn5sZPYcr/d5yU fenfrBfwkugLFKai0ZuL1WdrxjDPtAxxUSmby4OXCwX/s5e+cMNN6eA6w2K5maklx9AXXq 1R2ES0JNWdc0hm4tdJdBX3qZuHqtGRw= Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-57023c9be80so39992257b3.3 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 20:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687835775; x=1690427775; 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=Gr8f3MEz3obvDl9KABhIuO70HTBkoFbuWEeimu9z4yQhoBxpIMzXHt4/zQiD/35FR2 Rou/oVuLMNuircs5Aw55ugfL83e83sFrRKh4nGjfNUBrs0Ns51CypHUWM+aHwKiIGCB4 bDbKAJJc6ueglTVv6Zd/8VvPqPuBRwfoUXOaXnwyPF0zCFc73NfT/c9Q8XEzBzPYIVow QBI9GU/YA6Md8J3UGn6Xw0CXbMe3aYnpOaLZmcH+kLxI6o4K+ynL8B23lQ0U//mVHlcw WbYitL1St1RrPY9jH0d0TpkVmHfz+e14q0Nl7+sag9AUsUOnDCmyHqhFNRZORMjuCsmz kdWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687835775; x=1690427775; 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=YSfBYgVG+aG++0W8cM5D964AenaePjubHG8WlGcl9Ll2x66I9G8h2zGpAez+o9udCu IgJfcX1TQhJKI+RCXjtDbaiW3PM+w0szSm6+VKEJhwWW4XaR3uv0E3KwzfiHXW8QIQe2 QJcfMSJikI3T45reODU55xkn+5t853LGEU48vQB0ViM2A07QIVELTMI37s2gp8d1sxor ggD+3IkQkBRZJoUBkvt+gZBZYZX3T0wzDGHJ6Zel4X8N1N+MLORnlux9+/INv7bsskwX eCCBMdAVxuWMAA5qwkeu8C62kaAY42S1BU6W2Vqfpv1MiFM5F3TvCtZONQqYbz1bE7Kf LUZA== X-Gm-Message-State: AC+VfDwgfYZzIVsdweNsyzdztS9RLzuAlqFc1fKaqAiDSZNo8BPKcluN SO2nWGOYw5QasxNAMvcSp14= X-Google-Smtp-Source: ACHHUZ4XU3sOm1xs9Jcr5rbSZbAjZaSOolmfhgi2qcsz6PmREIffAwTevHZjKc/Hdw6V5zHvfavIAw== X-Received: by 2002:a0d:cd46:0:b0:576:7902:f4dd with SMTP id p67-20020a0dcd46000000b005767902f4ddmr12132465ywd.47.1687835775530; Mon, 26 Jun 2023 20:16:15 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id s4-20020a0dd004000000b0057399b3bd26sm1614798ywd.33.2023.06.26.20.16.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 20:16:15 -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 v6 32/33] um: Convert {pmd, pte}_free_tlb() to use ptdescs Date: Mon, 26 Jun 2023 20:14:30 -0700 Message-Id: <20230627031431.29653-33-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230627031431.29653-1-vishal.moola@gmail.com> References: <20230627031431.29653-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 5BD651A0004 X-Stat-Signature: d3phzpe4o3rq1f3yiipg8sm7hg6iater X-Rspam-User: X-HE-Tag: 1687835776-72842 X-HE-Meta: U2FsdGVkX19M8rWvy/X0+3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TkGSA5GmDALb6u3jEHdK0VuSPBp7F+6cHWUCfubGr8kQTvkEjAj98WzkrpHi5CwuhDwdLtLEs4JdtkcS94sXvyJMDBgsBLRrafk9Z6RJ27LmsGM/eb7Hb0HlI9mR/D+qs6p1i2ciiU6t4jOz+i3E8BaOiK4UutHKLh1c2Pwh8IsP6MJ2R7LHaDpeaL6qjm+SEj0NL8hpBB2dD+iiNMA0lQM9lLfyYA0G/B/A/Eus00gIgtu7Rkv6y6yINJU/6izy8I/rNvaULex/W55KwmotyRTagLDuuGsa9bqxeC1wssNoHwKrCy8DVCxjuZ7S/j/KTC2TOujWYNhVNDWa0FN/Y3tMtlpK7ifGryvU31o6ePWzHZbUWIUylIp9HCzU1KoTr/8CDyxi+Xo69ROER+EnXHUZlNYfweeUd9OGnoWLkZhPnti9+uOS7NuUXoDpS/gLsGw3cJTCz9+sUpcCcOwqCsDcl9uL5dUC9euUr4bZR1iWudY1Oa8oSBq3x3GJMmzkqJOCuxZWGyIv1upF5zbnOrsnOJxUO08n20iC0XBjXDuukEG+k+VNnzcbdq6D9tUdBqGqbvFzCUuOtap7KhS0NXiYsc8A3r1ili9fSFQ== 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