mm-pgtable-move-__tlb_remove_table_one-in-x86-to-generic-file.patch removed from -mm tree
The quilt patch titled
Subject: mm: pgtable: move __tlb_remove_table_one() in x86 to generic file
has been removed from the -mm tree. Its filename was
mm-pgtable-move-__tlb_remove_table_one-in-x86-to-generic-file.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Qi Zheng <[email protected]>
Subject: mm: pgtable: move __tlb_remove_table_one() in x86 to generic file
Date: Wed, 8 Jan 2025 14:57:32 +0800
The __tlb_remove_table_one() in x86 does not contain architecture-specific content, so move it to the generic file.
Link https://lkml.kernel.org/r/aab8a449bc67167943fd2cb5aab0a3a23b7b1cd7.1736317725.git.zhengqi.arch@bytedance.com open here
Signed-off-by Qi Zheng <[email protected]>
Reviewed-by Kevin Brodsky <[email protected]>
Cc Alexander Gordeev <[email protected]>
Cc Alexandre Ghiti <[email protected]>
Cc Alexandre Ghiti <[email protected]>
Cc Andreas Larsson <[email protected]>
Cc Aneesh Kumar K.V (Arm) <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Dave Hansen <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc David Rientjes <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Jann Horn <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Mike Rapoport (Microsoft) <[email protected]>
Cc Muchun Song <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Peter Zijlstra (Intel) <[email protected]>
Cc Ryan Roberts <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Vishal Moola (Oracle) <[email protected]>
Cc Will Deacon <[email protected]>
Cc Yu Zhao <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/x86/include/asm/tlb.h | 19 ------------------- mm/mmu_gather.c | 20 ++++++++++++++++++-- 2 files changed, 18 insertions(+), 21 deletions(-)
arch/x86/include/asm/tlb.h renamed from arch/x86/include/asm/tlb.h~mm-pgtable-move-__tlb_remove_table_one-in-x86-to-generic-file +0 -19
@@ -20,25 +20,6 @@ static inline void tlb_flush(struct mmu_flush_tlb_mm_range (tlb->mm, start, end, stride_shift, tlb->freed_tables); } -#ifdef CONFIG_PT_RECLAIM -static inline void __tlb_remove_table_one_rcu (struct rcu_head *head) -{ -struct ptdesc *ptdesc; - - ptdesc = container_of(head, struct ptdesc, pt_rcu_head); -__tlb_remove_table (ptdesc); -} - -static inline void __tlb_remove_table_one (void *table) -{ -struct ptdesc *ptdesc; - - ptdesc = table; -call_rcu (&ptdesc->pt_rcu_head, __tlb_remove_table_one_rcu); -} -#define __tlb_remove_table_one __tlb_remove_table_one -#endif /* CONFIG_PT_RECLAIM */ -static inline void invlpg (unsigned long addr) { asmvolatile ("invlpg (%0)" ::"r" (addr) :"memory" );
mm/mmu_gather.c renamed from mm/mmu_gather.c~mm-pgtable-move-__tlb_remove_table_one-in-x86-to-generic-file +18 -2
@@ -311,13 +311,29 @@ static inline void tlb_table_invalidate( } } -#ifndef __tlb_remove_table_one +#ifdef CONFIG_PT_RECLAIM +static inline void __tlb_remove_table_one_rcu (struct rcu_head *head) +{ +struct ptdesc *ptdesc; + + ptdesc = container_of(head, struct ptdesc, pt_rcu_head); +__tlb_remove_table (ptdesc); +} + +static inline void __tlb_remove_table_one (void *table) +{ +struct ptdesc *ptdesc; + + ptdesc = table; +call_rcu (&ptdesc->pt_rcu_head, __tlb_remove_table_one_rcu); +} +#else static inline void __tlb_remove_table_one (void *table) {tlb_remove_table_sync_one ();__tlb_remove_table (table); } -#endif +#endif /* CONFIG_PT_RECLAIM */ static void tlb_remove_table_one (void *table) {
_
Patches currently in -mm which might be from [email protected] are