Skip to contentSkip to conversation

mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 20, 2022

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: move tlb_flush_pending inline helpers to mm_inline.h
has been removed from the -mm tree. Its filename was
mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Arnd Bergmann <[email protected]>
Subject: mm: move tlb_flush_pending inline helpers to mm_inline.h

linux/mm_types.h should only define structure definitions, to make it cheap to include elsewhere. The atomic_t helper function definitions are particularly large, so it's better to move the helpers using those into the existing linux/mm_inline.h and only include that where needed.

As a follow-up, we may want to go through all the indirect includes in mm_types.h and reduce them as much as possible.

Cc Al Viro <[email protected]>
Cc Stephen Rothwell <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Colin Cross <[email protected]>
Cc Kees Cook <[email protected]>
Cc Peter Xu <[email protected]>
Cc Peter Zijlstra (Intel) <[email protected]>
Cc Yu Zhao <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Eric Biederman <[email protected]>

---

 arch/x86/include/asm/pgtable.h |    2 
 include/linux/mm.h             |   45 ----------
 include/linux/mm_inline.h      |   86 ++++++++++++++++++++
 include/linux/mm_types.h       |  129 ++++++++++---------------------
 mm/ksm.c                       |    1 
 mm/mapping_dirty_helpers.c     |    1 
 mm/memory.c                    |    1 
 mm/mmu_gather.c                |    1 
 mm/pgtable-generic.c           |    1 
 9 files changed, 137 insertions(+), 130 deletions(-)
arch/x86/include/asm/pgtable.h renamed from arch/x86/include/asm/pgtable.h~mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh +1 -1
@@ -752,7 +752,7 @@ static inline bool pte_accessible(struct
 		return true;
 
 	if ((pte_flags(a) & _PAGE_PROTNONE) &&
-			mm_tlb_flush_pending(mm))
+			atomic_read(&mm->tlb_flush_pending))
 		return true;
 
 	return false;
include/linux/mm.h renamed from include/linux/mm.h~mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh +0 -45

51 lines not on this page · raw message

include/linux/mm_inline.h renamed from include/linux/mm_inline.h~mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh +86 -0

96 lines not on this page · raw message

include/linux/mm_types.h renamed from include/linux/mm_types.h~mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh +45 -84

139 lines not on this page · raw message

mm/ksm.c renamed from mm/ksm.c~mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh +1 -0
@@ -15,6 +15,7 @@
 
 #include <linux/errno.h>
 #include <linux/mm.h>
+#include <linux/mm_inline.h>
 #include <linux/fs.h>
 #include <linux/mman.h>
 #include <linux/sched.h>
mm/mapping_dirty_helpers.c renamed from mm/mapping_dirty_helpers.c~mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh +1 -0
@@ -3,6 +3,7 @@
 #include <linux/hugetlb.h>
 #include <linux/bitops.h>
 #include <linux/mmu_notifier.h>
+#include <linux/mm_inline.h>
 #include <asm/cacheflush.h>
 #include <asm/tlbflush.h>
 
mm/memory.c renamed from mm/memory.c~mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh +1 -0
@@ -41,6 +41,7 @@
 
 #include <linux/kernel_stat.h>
 #include <linux/mm.h>
+#include <linux/mm_inline.h>
 #include <linux/sched/mm.h>
 #include <linux/sched/coredump.h>
 #include <linux/sched/numa_balancing.h>
mm/mmu_gather.c renamed from mm/mmu_gather.c~mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh +1 -0
@@ -3,6 +3,7 @@
 #include <linux/kernel.h>
 #include <linux/mmdebug.h>
 #include <linux/mm_types.h>
+#include <linux/mm_inline.h>
 #include <linux/pagemap.h>
 #include <linux/rcupdate.h>
 #include <linux/smp.h>
mm/pgtable-generic.c renamed from mm/pgtable-generic.c~mm-move-tlb_flush_pending-inline-helpers-to-mm_inlineh +1 -0
@@ -10,6 +10,7 @@
 #include <linux/pagemap.h>
 #include <linux/hugetlb.h>
 #include <linux/pgtable.h>
+#include <linux/mm_inline.h>
 #include <asm/tlb.h>
 
 /*

_

Patches currently in -mm which might be from [email protected] are

fs-move-inode-sysctls-to-its-own-file-fix.patch fs-move-dcache-sysctls-to-its-own-file-fix-2.patch