Message ID | 20230725042051.36691-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 6CBFFC04A6A for <linux-mm@archiver.kernel.org>; Tue, 25 Jul 2023 04:22:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F060990000E; Tue, 25 Jul 2023 00:22:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E6892900002; Tue, 25 Jul 2023 00:22:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D09F290000E; Tue, 25 Jul 2023 00:22:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id C0618900002 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 00:22:13 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 94D70A0BDB for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:22:13 +0000 (UTC) X-FDA: 81048836946.15.7544150 Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) by imf03.hostedemail.com (Postfix) with ESMTP id CB13620005 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:22:11 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=dIpSbxhi; spf=pass (imf03.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.171 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=1690258931; 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=oWt6gFCoqBE04Cy6oWhRYUxckeG28oGPRxrzKtSj+dWfEO88ylBO+J/BcLB8onHgF+kq4D uY82oNVWlE6M7SKM3J4UVJ0QcOPVa4jU8PpH4uODknMjxL3dJCIZJsjzrDln3Kapg9QTnc 8zh4OqufPqoN1EMoyBS7LUuqxKX3new= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690258931; a=rsa-sha256; cv=none; b=Vy7vlHkW5KJ0F0nSgej7u1xhYULJrsSUJOun2UdJpIg4kowv6lP0oW55R5lrM4SE+LIdin Kd/aD+gtLB+MUSYCLI8WoD8RnQRdOyDeV3CKamuJucDig5hdq97d1n3gnPIAdhs1jdsZ3C rlC9vKOUN1mrxl/xpJYt8jKE5MrLj0U= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=dIpSbxhi; spf=pass (imf03.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.171 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-c5cf26e9669so4297005276.0 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 21:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690258931; x=1690863731; 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=dIpSbxhiHoEZRybZXN/MVeO3g9uu5Wr3kckw/68K6KR19uhvm31rhYObpAHJDDboRN fN++WCiGx69nFrN6B8d/NLOzRwfLSelYXtCG2axa3nxyX1nLiBBRswcz9UUR+gYqr6j2 ancXFsSIRjlVC+siGAlQPxsDtqvlS6d02kp43kWDLSl5AqbfL3SxRXE8QCvzAnUbAKUU YasskwMDZ8VrwnmHFnrCJmWDVf5znjGB85g4q/nAwV8W9HMi2mBDPg8zNmEW2Wmz/ahG Gd3GY4JptXSFLWhWmWPz4PD8TWa0sGWxRtah1a9utFkbDSvAH1sC4A2J8wMHczxZTgoj 5RbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690258931; x=1690863731; 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=gd8TWJXuh7CWZsB+pBTqZ9NXIXHTF7yHGjTq3CkIldVR8zF6fCu0b2aOBaVHCDrtQt vh5QWeU0/OqN3V9buFgFkF/KealLw1QY+SF/qD+P6jDrf6nRO+hUANxjUiU4vHv9nzmO qte7T13f8WllWAsAidgvSu4W6xckTRpHtImCrnZcnYVX6elYkBmaWr9OEYMqivjFwxqC d0qpk66AJr4WAGgU43OkMzV85aWGrCPBt25nFuwr4+ZkQqwvvfoIWu5wdzYFXASphVIa zQeZsKHVJ0RV/QGGWpaULMoWJxKX0Cf4MFP4WlqdN+imBPKeVVp1fgpYXcteP+iQ2cQr dnhQ== X-Gm-Message-State: ABy/qLbJ9WyvRnPD9H+5T6yy4CO8u/t4kzrFwHCyiZOZ9QdL/ZKZPeK7 RAetVihutvccyKdUZcjS66Y= X-Google-Smtp-Source: APBJJlFFrRXSNeam/kWey2sQFPpJrG6DmS1yW3xEJWnQmkKSGkoB3AAvrxYF3pVhZLtkZcpr8uNrnQ== X-Received: by 2002:a25:2517:0:b0:d0a:86fc:6110 with SMTP id l23-20020a252517000000b00d0a86fc6110mr5159740ybl.28.1690258930893; Mon, 24 Jul 2023 21:22:10 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id h9-20020a25b189000000b00d0db687ef48sm1175540ybj.61.2023.07.24.21.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 21:22:10 -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 v7 30/31] um: Convert {pmd, pte}_free_tlb() to use ptdescs Date: Mon, 24 Jul 2023 21:20:50 -0700 Message-Id: <20230725042051.36691-31-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230725042051.36691-1-vishal.moola@gmail.com> References: <20230725042051.36691-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: CB13620005 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 8qh9w35ti6t9pd1shkp93hshj1dz77mt X-HE-Tag: 1690258931-852186 X-HE-Meta: U2FsdGVkX18VzDx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yYgUlB2OE5gulv+Unw9H/eWle9ujHjVGgyALU6LZDjRxfJ9oRBEW4gld88WQRxtauu+muGeYkTBFc/ymwZpnxlpZPO4xnN3rY3ydp7nKlNmvUPHBIaSLEdCa2vZuhuwFROo8nb7rhaSp0CGQ9GrZH7B24OlDnnDLB6ZC1TezN4uAgdPgajlIxXymDoiJjCOhPaovd/pBICpT1phDOb9f9fN6/WsvlfWNLtuh1SHJ+V2xYB19xxvEIb7izhM/r24Q00TQ72X2DJ0uABo7EsOWC4NkXOK+4zJbATy4ecwwL8ZRNCqk/HmVe8iurjejUOzaMmKvViSMjI+O2ebmh0fCoWRQk1fsNn7RHGMuRFT29A+lRQLe9MQ3VK33HRv7tnkp6Gv18nagVr81VXrFgp3lqMw+ag4UPuSv7dj+2XKeEVBp+zDV9gZG0mLK6bImyT9/WWJHlbfamZCPV4kaO024TSD7UjsTDwEhEnxt2zeZYEmimVcX2qAG0UzxK1G4EjFJZ+rrwa2zJCkF7GDLunDHmTFTDDKYspaLc= 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