mm-demotion-move-memory-demotion-related-code.patch removed from -mm tree
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.
---
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