Message ID | 62d6a04c3a0e70efd435cc2c8a4d9d07d94e7ece.1737637631.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 DCFCBC02182 for <linux-mm@archiver.kernel.org>; Thu, 23 Jan 2025 13:29:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5C8E7280004; Thu, 23 Jan 2025 08:29:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 57777280001; Thu, 23 Jan 2025 08:29:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 417F9280004; Thu, 23 Jan 2025 08:29:12 -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 21F19280001 for <linux-mm@kvack.org>; Thu, 23 Jan 2025 08:29:12 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id A54EB141056 for <linux-mm@kvack.org>; Thu, 23 Jan 2025 13:29:11 +0000 (UTC) X-FDA: 83038797702.18.26270A6 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by imf21.hostedemail.com (Postfix) with ESMTP id 7A0011C0009 for <linux-mm@kvack.org>; Thu, 23 Jan 2025 13:29:09 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=Y9OXPmC0; spf=pass (imf21.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.169 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=1737638949; 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=8C94XB4BAC98f0nzKDfhip6ZZIJjZtAIgTVlkxB/zEY=; b=sZ7wTY8EOGbfqkph2ffNzRTxPrYmXf/yO5ne2m7k2K8M+R3KtcElcJeW7LOwYbY1X/K04I 0Yk/sJh8y6YhPLqM+nTlwiyab1CTpwPeowfU2RTywW+he9Na+IMGXqH2W8Jc5IW1VDvRkt BwCj3oRVgSb3HTn/InVt1GHWWIAE6fA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737638949; a=rsa-sha256; cv=none; b=p44J8vAnBZ9Ms9HcswjJfNPWDum250FiTp07PoFB7j8MrXCxzbCWSPva1myGnNe0i6S2N3 DeT8c3YNB5wwBu8lRiGCGhU0a/3pzPlhvVIEgAHOVterKReTSJ3x2MhvLU1/kuL7/ZNzD3 lUHTjN3l1Nj4bo2vW8oznqcOlbN3Ucc= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=Y9OXPmC0; spf=pass (imf21.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.169 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2166022c5caso13618405ad.2 for <linux-mm@kvack.org>; Thu, 23 Jan 2025 05:29:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1737638948; x=1738243748; 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=8C94XB4BAC98f0nzKDfhip6ZZIJjZtAIgTVlkxB/zEY=; b=Y9OXPmC0xMt9u63XaJWdDPa+2BUeM4N3JalSc90Bw1o6XJafWrYhG71g/QboiRU17y how21ex6WqNMDUZnKP9qYrALv8jqDu2GYSSVivd6deA+pzxWjBDJY/tBujyFJpdW/bFj 2HWBLSaeXaGg2ZMFQg3PgRFF/tFH77tn4fr9DjSroUhpShDQ26Lj5dyv1H9zdXnvb1Zm yDzFp8R01R1GGTkMupFHQphgUbBLP71mM2zpM9FWRqJOrhiNSGRSJaPo3IXhZO9Ztw62 5IWak7wwtB+PSs+iTnc7zh55rvzCP1Bla0NVDE5H4SOsifKzlhz2Ez7/SqkdDgv+R0pO +NeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737638948; x=1738243748; 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=8C94XB4BAC98f0nzKDfhip6ZZIJjZtAIgTVlkxB/zEY=; b=GZlYjfa2GlI3jN3cAv2Us1FxFMGPPInxJW19FuWrMKjtqg532maFsVICdoHZgr8YiT MAI6JadEZQrtxEYWU6LEFtmL3yq6GY+ytg7UZg/axVDrk0MO4konS2uyotIH/JDf1Yb0 kTZvlu2g4UkUtC5ecDO5PCr1cYeEmFtEHTlOoJR5IUw84QImXD7WOzEeahoXecLrYNBT F8oVkH/XnDK5dWBx73KpNR3nu/R0dVwAF5I19hU1MTN8aHTmknvubgEKTLzx7SkBtSDV UQeYTuUWse9Q8CSixqRrqNS7YTkfi+u5U0YherFQoWVG5j7yO5thJKoObmvBmZKb3c0Q mNKw== X-Gm-Message-State: AOJu0YxvNcG71F+rJNz51K+XDwz/bKheWmSfeij/7Hc+LRXpkOGercPI Uu191A98Fy6YJ6KVMoeHN0Seo5OgfkCJPFKWqtZXXiyeZbo6nqBaIZCyYxaBoqs= X-Gm-Gg: ASbGncvn7em+FZgFrSmZ72E8NRmlSsNgL6Pgz1IQ1YN/ABPLB8QMhGka+hhHc0ccYTF ZzTSvmrsNbcw3Ln9+VZJ4sZp7hnCPJFtyOVcbnOMpRT0AbeMi6FEub2tQ23aPE8rYknUbtPn8ES doz1Ecv6lMVmHUBg7o5eJamo4v1QV3NcO++5MEGqj+yaAjeLEn57pLNf2IUQkBq/ikx+f7aTZMB 6hzMn+gcsR9PwNuFqvFLLBDS+qhi/oIsccaYbMigC2j1t4oVZQaw7YEV5wdygRuPfS5bTfIxXdu JcnQ+6SENcG35kNmQkUV1l3ArGPf1g9T2kQEGtPIJnwA X-Google-Smtp-Source: AGHT+IFkSdO3UtmG5jKkAJtanqQZSHufZoNoVtMFPHl42HZUz79kP6iB5Pw4LWGczfrtYHtt4kZUXA== X-Received: by 2002:a17:902:f54f:b0:215:b468:1a33 with SMTP id d9443c01a7336-21c351c67acmr376126085ad.4.1737638948337; Thu, 23 Jan 2025 05:29:08 -0800 (PST) Received: from C02DW0BEMD6R.bytedance.net ([63.216.146.178]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3ac3e2sm111583655ad.139.2025.01.23.05.28.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 05:29:07 -0800 (PST) From: Qi Zheng <zhengqi.arch@bytedance.com> To: peterz@infradead.org, kevin.brodsky@arm.com, riel@surriel.com, vishal.moola@gmail.com, david@redhat.com, jannh@google.com, hughd@google.com, willy@infradead.org, yuzhao@google.com, muchun.song@linux.dev, akpm@linux-foundation.org, will@kernel.org, aneesh.kumar@kernel.org, npiggin@gmail.com, arnd@arndb.de, dave.hansen@linux.intel.com, rppt@kernel.org, alexghiti@rivosinc.com Cc: linux-mm@kvack.org, linux-kernel@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, x86@kernel.org, linux-riscv@lists.infradead.org, Qi Zheng <zhengqi.arch@bytedance.com> Subject: [PATCH 5/5] mm: pgtable: remove tlb_remove_page_ptdesc() Date: Thu, 23 Jan 2025 21:26:18 +0800 Message-Id: <62d6a04c3a0e70efd435cc2c8a4d9d07d94e7ece.1737637631.git.zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <cover.1737637631.git.zhengqi.arch@bytedance.com> References: <cover.1737637631.git.zhengqi.arch@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 7A0011C0009 X-Stat-Signature: cfriysj6o1gzotrpedrfrobwx4wk3ofx X-Rspam-User: X-Rspamd-Server: rspam12 X-HE-Tag: 1737638949-468314 X-HE-Meta: U2FsdGVkX1/b83puhvZdkGvv4UBdRn4WiDzKQmQ3oFJhEr/yZZ+vOtcaDkL/K7HC6D0ZFJtG5voKLKBQxuPI9dNWKGUsLZqFu557tsYKFkk/4ozDwKIXFsbYOEXtP3fCQxWyaY1QZb6IO5tgihZ+ls/fRTOzVHo5fulUcB/LLqLii7klOf7rejon84ZWKwoh9noo9KxQxNR2oflXSo8i/H5mcBtYWqb4wPvRGYxwscBVgJl4p3YO4dY2C/myuYpg+/MIMGHAKub+ywN7DgOXILpaOSwzYWnc7wlA29lY3y7aiW/H6iMc45oQTSKLlSamOcgcuOJCuHaKtqwVTPLg1dwoJ3HRbMtRcVb8rV7PM0F3GpRIb+k3xEgda9pygmQ7gA4fwqG70tTH7DefW/EJVYGneuardrwK+vDCmI4ZfvkWvNseGJailMm2Hox4/14kvqCAkAMwQV4T16C1RctK8/pxVu0YTclfLnocwqYvtTOCO7RSj8Nr8sm26b13wz/FRWQtbPwBpefml5rvvUOXNMNMCAOIo6XGjr6eYxfK06JcHT5VLF8Q0XO3MtWK08WtGZrp2h+y/XowrV+NAVQd2A7n1j4I4Kus5wBPvkJi20g+7jQh1i+/z5U2OBw/Tertlr7iP4H0nIF4RYb0bRAjYP2/xjugCq0sEy+wZs9QwoHpuYwdeSCkIpcqhPj+gzJ4HkMDyLCkZF5te1lKOarucAmPrR6aKSXb4MBIkqkUh0Wjf7iM/H6HcVLn8ssDKtkc0mJz0+bT3NvRqIGuOhuNZqGP2z9Tjtubqbq9VmT8BTOQPLDvbvz6RRFO5ml47eu5NMfW2WAvhRs/tlodRoomGOIQUY/dZxN+M4KGgXpQgOdVA0Egkcp2hy5s62bCvka+H0gkud6YI2YAPIzLi03uy3h7M79OseUx4frJc8CN+Nw4cGNcR+TPlRuGNN73OFprx/hkzQuNzfJC6MU1lwh VjPN45Un O3sPU1w2iiUU3IGXYxmZScXer1vPJau+gNoUsgWHAqHz7wEvwO9ahK9F1VMznq1EJTRKHtgXxYI+dMRz9CMra7hLzDCgTBlQcUV4Nr1ylpvzaKN4WxborC6/5RyQ052qnoqjJ0mlBJT/JqMmXb6Hy+DkTVxqEdBShPTIItUTf6nqCK+TN9MnpsYPo56Ldv7OSGeyQJNa3sVMPKIMwzzT9jnAMAn3cMwYt8PEur/XDJUYVfbjkiqtfxtEOVP3dwT8IgfwueLxZZWAoaBLdKC4ppq7EU+ED7w785Ucw+TbJX3l+GZA5T+2iEayvdYX/44On9kdjs07nZekOSxqVNHNMwTsYbMtS3U79dMn00OFOU+8aErb3qNIyMM0iwVsfWWvZqwZsyMh9UawKE7rekr1S7PPT2OTnIWSmx7vItedzd/UYsOZrHV1NSndW08VG761axNYuzWgw4GddWSrDSULhxgqdAzpvwf/M8ZvbUWovg81AZEs= 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 |
remove tlb_remove_page_ptdesc()
|
expand
|
diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index 10cdbe0e7adfe..dec030cb12108 100644 --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h @@ -509,12 +509,6 @@ static inline void tlb_remove_ptdesc(struct mmu_gather *tlb, void *pt) tlb_remove_table(tlb, pt); } -/* Like tlb_remove_ptdesc, but for page-like page directories. */ -static inline void tlb_remove_page_ptdesc(struct mmu_gather *tlb, struct ptdesc *pt) -{ - tlb_remove_page(tlb, ptdesc_page(pt)); -} - static inline void tlb_change_page_size(struct mmu_gather *tlb, unsigned int page_size) {
The tlb_remove_ptdesc()/tlb_remove_table() is specially designed for page table pages, and now all architectures have been converted to use it to remove page table pages. So let's remove tlb_remove_page_ptdesc(), it currently has no users and should not be used for page table pages. Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com> Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org> --- include/asm-generic/tlb.h | 6 ------ 1 file changed, 6 deletions(-)