Message ID | 20230622205745.79707-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 E5E75C0502B for <linux-mm@archiver.kernel.org>; Thu, 22 Jun 2023 20:59:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8A9268D001F; Thu, 22 Jun 2023 16:59:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 80B028D0001; Thu, 22 Jun 2023 16:59:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 684248D001F; Thu, 22 Jun 2023 16:59:06 -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 5A5F68D0001 for <linux-mm@kvack.org>; Thu, 22 Jun 2023 16:59:06 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2DE5C14017B for <linux-mm@kvack.org>; Thu, 22 Jun 2023 20:59:06 +0000 (UTC) X-FDA: 80931598692.28.2680CB6 Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) by imf01.hostedemail.com (Postfix) with ESMTP id 3302940014 for <linux-mm@kvack.org>; Thu, 22 Jun 2023 20:59:03 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=JIPmtJWZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf01.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.221.180 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=1687467544; 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=IKMpHYvIh4HqidfUipAskXV2Cfl+jvHpMn8UmFh32X6tLWbALm8W4HlV7pzUyJI1c1wRkx sPNMdMda8Xyd/d0k1lnwWwW8fhqZLDZt4noXgAoujRSfl2dTxMs7KP2dNe8eb3ye39UNbn mwJVa+Ss2/1zbn5rylE33CMho+aOFnU= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=JIPmtJWZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf01.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.221.180 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687467544; a=rsa-sha256; cv=none; b=d0UXlD79zDN4BDXkPCMGozXxEmKY69nBa7mZOWKgDBPEzJiXux6nfj2mbrv9ZrBxNifBTd hMuT3BK9S5qWtJwisHu4y/JTp5cG9fvN8RsFq8Mi4mXzfYLbC+daLIAncB/22KUuPkSnDl 25ltGuc3MQzl8Z7l3fnnnhzc81ppEV0= Received: by mail-vk1-f180.google.com with SMTP id 71dfb90a1353d-4753de0807dso1171546e0c.2 for <linux-mm@kvack.org>; Thu, 22 Jun 2023 13:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687467543; x=1690059543; 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=JIPmtJWZzsFuYAbPd3iclg33SdIOk6GD+7bRoJGsXkLCA1qQrwoboYccPvVKSwty8z /qB14KJSfGNtyZY8gC2KXxRSZzLDqLeIztRDYfuoehM6XT+tgKnz6817MlJhyGs2y+Ff nzC5sPDHJyAHEqzN9xTnBixLp+PW75W3jhf77P4PsuZDMkZ6OcWV4Xi+Rqew178LHkOZ sutRPAF9NDYk2/4a4fGlPwKxe3Z/pKSq61jE0ZBiyKHaHi8RSPhHJpH4MRgs4uLl46tG QM0pvqokM6W0xltWNxHmZb4kL6K9Vi53nErkSfWOsX8epBIiO3LuoRLa0NZXa1LOWk1D I+ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687467543; x=1690059543; 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=KYz29+ZTmm4q/bsEcj1gn/rQoC0fbmYHiDmEQBq2gs1W8LJFyJLCOegMxWsNrPSTwF 2qitVfwta4zbHz6ZRVnH5nRNbZVFCHBpgxJeHu+NzcvaFdeUNcUTYKq8qegVSgLxAvol W1+k0WX6vwsOrZH+NmyvuXLqOG5y0faoMVoyF+CLiiegKKPqBbDTIlUogJaVfDtyzc5x MKZ1PYvaOOgM6ay9uMqQQPuofMpdWQ3tXR3hg3V2yHhVng1iw8mr7IovhH5vlzQ/8thU 66r7rJ2l6EDkV48NtWrgDcbm2Hz9Wq7xWDHU4ukp+uUUh9sG/RMtd5KPD2ULnL7mJ6gp R2zQ== X-Gm-Message-State: AC+VfDzhLRqBivUFdoPa+MxCDhZj/NWzLRfH63gibp6cn6OuPmDSBK4T jGSSYpq0UA+gDuAgAtkCPP8= X-Google-Smtp-Source: ACHHUZ4B8dweYtEIi2rY8Mw0qtzsz5NxOVUlUIQPQfiDh4wzrLYoG70uIa1HADP+PMU/T07FaShgdg== X-Received: by 2002:a67:d087:0:b0:438:d4bd:f1f2 with SMTP id s7-20020a67d087000000b00438d4bdf1f2mr9462119vsi.22.1687467543144; Thu, 22 Jun 2023 13:59:03 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::36]) by smtp.googlemail.com with ESMTPSA id d18-20020a5b0c52000000b00bc501a1b062sm1684937ybr.42.2023.06.22.13.59.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 13:59:02 -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 v5 32/33] um: Convert {pmd, pte}_free_tlb() to use ptdescs Date: Thu, 22 Jun 2023 13:57:44 -0700 Message-Id: <20230622205745.79707-33-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230622205745.79707-1-vishal.moola@gmail.com> References: <20230622205745.79707-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 3302940014 X-Stat-Signature: 4dqrxpbrchq69hb1i61k9bheq31hgnbu X-Rspam-User: X-HE-Tag: 1687467543-162316 X-HE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FI1FhdHKweoWL6gXcg1xPLoMeXFzy/9ZoCdLpTysn/J9gSbJLY2OV6ZeUn3k/vbfMOctNhpMuc3YwRF4UP6LDzT96I+lTw8nzGAtqZuGHw41Yrnw8KXraLjwTnp1CNDWVy/4g4XPa0y/n0NLe4G13BCvQ+POPk5JjWXnrMLw7f++6HTiSpfHFsgbOAmE4otMF4oQx3C/Bbs8sh61u0SNK9iwmcWcCaC2bQ/BoXqR8JOL/bMBfos2EOR7dP+cEIeZRfpcHzKNjhAngWnjsYx7tywlgA30+N+/PJsJiYBuIvj+X/fHU4CH27jIHcMwMxRnwrQm7vyvMSVmfENhvxwZkNZCYqwKitKM8D04cJ8izo34oGLYSmZpc7eW4cqb6xWonVhHgswe0Qp/RMZhIrAJLikRsnkxt0U5HxQ08YIyGO2EEuazp+faZ9QeIdCUxTHtusZ5a6c9JiOPM9f8dmE3xzdBQKWA40WJDNdfHZrfapszDND9JlcRgbuOg2nFTM33ATKPClzSz3Hgz6HBBaXQtAvTbX5JiLxj2XPIdBKzZ/erILidMpzjlNxzkpLW59/5XbcwLchp0ibOK28/pQ4b/f0e4BowdiR3xEhNpB8vdyZlPAeFlRW0tw3z+Ld/RMSLpaU9Is938AFIGA== 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