Skip to contentSkip to conversation

mm-demotion-move-memory-demotion-related-code.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Sep 27, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/demotion: move memory demotion related code
has been removed from the -mm tree. Its filename was
mm-demotion-move-memory-demotion-related-code.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: "Aneesh Kumar K.V" <[email protected]>
Subject: mm/demotion: move memory demotion related code
Date: Thu, 18 Aug 2022 18:40:34 +0530

This moves memory demotion related code to mm/memory-tiers.c. No functional change in this patch.

Cc Alistair Popple <[email protected]>
Cc Bharata B Rao <[email protected]>
Cc Dan Williams <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc Hesham Almatary <[email protected]>
Cc Jagdish Gediya <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Tim Chen <[email protected]>
Cc Yang Shi <[email protected]>
Cc SeongJae Park <[email protected]>

---

 include/linux/memory-tiers.h |    8 ++++
 include/linux/migrate.h      |    2 -
 mm/memory-tiers.c            |   64 +++++++++++++++++++++++++++++++++
 mm/migrate.c                 |   60 ------------------------------
 mm/vmscan.c                  |    1 
 5 files changed, 74 insertions(+), 61 deletions(-)
include/linux/memory-tiers.h renamed from include/linux/memory-tiers.h~mm-demotion-move-memory-demotion-related-code +8 -0
@@ -15,4 +15,12 @@
  */
 #define MEMTIER_ADISTANCE_DRAM	((4 * MEMTIER_CHUNK_SIZE) + (MEMTIER_CHUNK_SIZE >> 1))
 
+#ifdef CONFIG_NUMA
+#include <linux/types.h>
+extern bool numa_demotion_enabled;
+
+#else
+
+#define numa_demotion_enabled	false
+#endif	/* CONFIG_NUMA */
 #endif  /* _LINUX_MEMORY_TIERS_H */
include/linux/migrate.h renamed from include/linux/migrate.h~mm-demotion-move-memory-demotion-related-code +0 -2
@@ -103,7 +103,6 @@ static inline int migrate_huge_page_move
 #if defined(CONFIG_MIGRATION) && defined(CONFIG_NUMA)
 extern void set_migration_target_nodes(void);
 extern void migrate_on_reclaim_init(void);
-extern bool numa_demotion_enabled;
 extern int next_demotion_node(int node);
 #else
 static inline void set_migration_target_nodes(void) {}
@@ -112,7 +111,6 @@ static inline int next_demotion_node(int
 {
         return NUMA_NO_NODE;
 }
-#define numa_demotion_enabled  false
 #endif
 
 #ifdef CONFIG_COMPACTION
mm/memory-tiers.c renamed from mm/memory-tiers.c~mm-demotion-move-memory-demotion-related-code +64 -0

73 lines not on this page · raw message

mm/migrate.c renamed from mm/migrate.c~mm-demotion-move-memory-demotion-related-code +1 -59

65 lines not on this page · raw message

mm/vmscan.c renamed from mm/vmscan.c~mm-demotion-move-memory-demotion-related-code +1 -0
@@ -43,6 +43,7 @@
 #include <linux/migrate.h>
 #include <linux/delayacct.h>
 #include <linux/sysctl.h>
+#include <linux/memory-tiers.h>
 #include <linux/oom.h>
 #include <linux/pagevec.h>
 #include <linux/prefetch.h>

_

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