Message ID | cf4b847caf390f96a3e3d534dacb2c174e16c154.1736317725.git.zhengqi.arch@bytedance.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 F0C11E77188 for <linux-mm@archiver.kernel.org>; Wed, 8 Jan 2025 07:01:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 895CD6B00A3; Wed, 8 Jan 2025 02:01:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 845CF6B00A4; Wed, 8 Jan 2025 02:01:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 70DEB6B00A5; Wed, 8 Jan 2025 02:01:38 -0500 (EST) 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 4CC406B00A3 for <linux-mm@kvack.org>; Wed, 8 Jan 2025 02:01:38 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 09A2280F9C for <linux-mm@kvack.org>; Wed, 8 Jan 2025 07:01:38 +0000 (UTC) X-FDA: 82983389076.17.6D7202B Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by imf19.hostedemail.com (Postfix) with ESMTP id 44A8D1A000A for <linux-mm@kvack.org>; Wed, 8 Jan 2025 07:01:36 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=XR1GTo7E; spf=pass (imf19.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.177 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736319696; 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=HOmYFC5rDCHPndkDeYhMazAtFRSG5eQpr+EJP/iMn+M=; b=VJ6gCP6ZnMZygQKqTvqPpr2juFTZPyNtR4PDdQ8PabdC3lpSsgzfI3R8UrA3yK72f0xB3k PqiRO+OjPkiSK5BXRIHw18XMmTFB/siEx10w6rZ+oWGOKBGAU0Ujr/SQaq4/NjV2la4BhQ aVt9xYhiFx1xTUfX2mkakvuIpnnKsVE= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=XR1GTo7E; spf=pass (imf19.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.177 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736319696; a=rsa-sha256; cv=none; b=6L1PDrecIfEx2cuaftgqizRW/vvCNgfp64aQmnNp4lnejh1he2lUOs2+Nd3RIPDeZuoStJ bWb2vqwunUH6sxmhkmMG8QbebbAnw8LBhQHe47H+NE8GcDU6HQ52hoqvetuS8vQZW4tuCy gxEMmcoPgj4Jh9lf/iP1OPbb+S28UXQ= Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-21649a7bcdcso234385585ad.1 for <linux-mm@kvack.org>; Tue, 07 Jan 2025 23:01:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1736319695; x=1736924495; darn=kvack.org; 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=HOmYFC5rDCHPndkDeYhMazAtFRSG5eQpr+EJP/iMn+M=; b=XR1GTo7EZqh+IHK2zp4fFysBlYRcwwa7UYbtH9rlkfqqYS7XReNgjHn+bn4OA5nQkL Mo15352hszJfSkux8DGXiSn2d9A4LwoesHADSdss8VO4PtOLKKlniXJ1Y5O42iqRvRXW 1NLQa357AuG1nX9sPTj2R4u2gWmRPbYbpkhNggHZknYQxJM4//F01/bd4VHl/ecyzs0b Sdjz0NXKrq+RDJkXfYzijXbUuE53lu3v2kP0YSVv9FnxkcRxflulF7RogiaTXsCPekT3 b7GtXsYjhuiBVBt7zF8M6EWHdxkc7UP2f2Tzj1kh//fWPEVpQDTn/H7p4/5R4UhY3eui h5UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736319695; x=1736924495; 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=HOmYFC5rDCHPndkDeYhMazAtFRSG5eQpr+EJP/iMn+M=; b=qjHsHNrMwSLceSGxBbGNszIc77lYu8uC2XfHp4dsy9+l6cV0nPtvmDJiJglmP1jrol FO6fpUHbX3hHWgz28JIGh4DKYLhBnPOtnGDBjlYNxEp5NpL3zElOisO4DqXHmwVK0aFf RJzyABGZtnPZXqt60vYURG2ZkrvR4Yoi5iwbCuE9yvXk8GSocJktp+97jIVZl1yNX47N IH2iQ7dIJ2Gwuc/PwWDCWuzlPo257yz/nO0g8ZhgUrVb+fHLCGY064E/9/GUoUBu36cC GaoDhwRKLEGnCzz56z9PUm++qxV1DDaBCK4mUL43BeG3nxowpJe+eJ7MLDDa2b6UPnFV Lxjg== X-Gm-Message-State: AOJu0YyuBAJOPepqveeC8sK/JwCfAnXCBvwn4XfdxZaPpvQL+HmVb/34 uW6UEa8CddaP5Xd8jQAv3ce5fL63gYR4UgBS4jfoLFsm7nGn6xeqpEwvjmV3GBE= X-Gm-Gg: ASbGncuYU0zlxaTQpP+MgpgwOsQiPva90u7ZcC7mzPPUQ3/Y9YiTJ2wFO5ThmZuHX3n JdkjA7vAnVaglNRdYoYB7MrYR93MfnoKXkLUrMw2DjIQnrp898+1H0CT/UGYD+UfecfHXsPDqI+ g2Zv5BORT6zAcAzl1ateL0o+1kYNSwabOgsAnlZXoHjY1Wxgi+zjxYLB2VDyGcZG+BBvU+lNDMW vK/Y+qMWvfwLsZSjjoAyTWzOs1xBV22vBXlficBxNzdNE/PFIxs9/gM37lC056EoKChMTiLOmO1 sRDATV5M3Iw4Ypb1j1LPXWHfhOI= X-Google-Smtp-Source: AGHT+IG2O0LK8ylHfVSG3OwO7HgAN7h4l7Hu7AhiZODZJ2StNi5+XwyqKLd4EhZPQDdK0Gl46ps1VQ== X-Received: by 2002:a17:902:d50d:b0:215:7421:27c with SMTP id d9443c01a7336-21a83f696a9mr29561025ad.29.1736319695027; Tue, 07 Jan 2025 23:01:35 -0800 (PST) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca023a3sm320067275ad.250.2025.01.07.23.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 23:01:34 -0800 (PST) From: Qi Zheng <zhengqi.arch@bytedance.com> To: peterz@infradead.org, agordeev@linux.ibm.com, kevin.brodsky@arm.com, alex@ghiti.fr, andreas@gaisler.com, palmer@dabbelt.com, tglx@linutronix.de, david@redhat.com, jannh@google.com, hughd@google.com, yuzhao@google.com, willy@infradead.org, muchun.song@linux.dev, vbabka@kernel.org, lorenzo.stoakes@oracle.com, akpm@linux-foundation.org, rientjes@google.com, vishal.moola@gmail.com, arnd@arndb.de, will@kernel.org, aneesh.kumar@kernel.org, npiggin@gmail.com, dave.hansen@linux.intel.com, rppt@kernel.org, ryan.roberts@arm.com Cc: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arch@vger.kernel.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, linux-sh@vger.kernel.org, linux-um@lists.infradead.org, Qi Zheng <zhengqi.arch@bytedance.com> Subject: [PATCH v5 09/17] arm64: pgtable: move pagetable_dtor() to __tlb_remove_table() Date: Wed, 8 Jan 2025 14:57:25 +0800 Message-Id: <cf4b847caf390f96a3e3d534dacb2c174e16c154.1736317725.git.zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <cover.1736317725.git.zhengqi.arch@bytedance.com> References: <cover.1736317725.git.zhengqi.arch@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 44A8D1A000A X-Stat-Signature: 41xa3nxwdeib8kjtbs8m7jx5rxbnabpr X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1736319696-750108 X-HE-Meta: U2FsdGVkX18B7/bzngh/wXD0I72GOCCVrdpa3d2p+zWGMiQv+Pl0f1EQ6WnlL38bqTPWqnRvyls8e6MtESp5vCdGAKwidaGMBarfFzRaFy9FFp4PzpOsdTuQyCi93s/H5L268CmTiK+oWfRGSt/hHhwggYi0iCOlF7FYJPV7Lvp4IjF03vl1lT6HiTWJTRZoDE7PxFNuRrtiiHTZgbRvF+qYJ1xkUDDm71U4cMxVglEV1FUn3THQaFDuYyLhYNnA5S+gpiMnO9OG7/skNtVXJAdP0J4mUZ6CyDvrAnBjCgo5wa/x3jm3kxRK33F/7eArleHGxDqchuPTxY2Sz6dRYJEzwBl6fgyorbraO3SqMttNUjD/3+aK2l5S6FFKnAX9psLYuk/kouHIkOP1TvXqCZMESCMZ/+JUqgg/ncmTf5+k85/ls4avzj4J1gYmU+AfooHtS++Wn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QaiCNo= 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
move pagetable_*_dtor() to __tlb_remove_table()
|
expand
|
diff --git a/arch/arm64/include/asm/tlb.h b/arch/arm64/include/asm/tlb.h index 408d0f36a8a8f..93591a80b5bfb 100644 --- a/arch/arm64/include/asm/tlb.h +++ b/arch/arm64/include/asm/tlb.h @@ -9,11 +9,13 @@ #define __ASM_TLB_H #include <linux/pagemap.h> -#include <linux/swap.h> static inline void __tlb_remove_table(void *_table) { - free_page_and_swap_cache((struct page *)_table); + struct ptdesc *ptdesc = (struct ptdesc *)_table; + + pagetable_dtor(ptdesc); + pagetable_free(ptdesc); } #define tlb_flush tlb_flush @@ -82,7 +84,6 @@ static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pte, { struct ptdesc *ptdesc = page_ptdesc(pte); - pagetable_dtor(ptdesc); tlb_remove_ptdesc(tlb, ptdesc); } @@ -92,7 +93,6 @@ static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmdp, { struct ptdesc *ptdesc = virt_to_ptdesc(pmdp); - pagetable_dtor(ptdesc); tlb_remove_ptdesc(tlb, ptdesc); } #endif @@ -106,7 +106,6 @@ static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pudp, if (!pgtable_l4_enabled()) return; - pagetable_dtor(ptdesc); tlb_remove_ptdesc(tlb, ptdesc); } #endif @@ -120,7 +119,6 @@ static inline void __p4d_free_tlb(struct mmu_gather *tlb, p4d_t *p4dp, if (!pgtable_l5_enabled()) return; - pagetable_dtor(ptdesc); tlb_remove_ptdesc(tlb, ptdesc); } #endif