mm-demotion-update-node_is_toptier-to-work-with-memory-tiers.patch removed from -mm tree
The quilt patch titled
Subject: mm/demotion: update node_is_toptier to work with memory tiers
has been removed from the -mm tree. Its filename was
mm-demotion-update-node_is_toptier-to-work-with-memory-tiers.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: update node_is_toptier to work with memory tiers
Date: Thu, 18 Aug 2022 18:40:41 +0530
With memory tier support we can have memory only NUMA nodes in the top tier from which we want to avoid promotion tracking NUMA faults. Update node_is_toptier to work with memory tiers. All NUMA nodes are by default top tier nodes. With lower(slower) memory tiers added we consider all memory tiers above a memory tier having CPU NUMA nodes as a top memory tier
---
include/linux/memory-tiers.h | 11 +++++++ include/linux/node.h | 5 --- kernel/sched/fair.c | 1 mm/huge_memory.c | 1 mm/memory-tiers.c | 47 +++++++++++++++++++++++++++++++++ mm/memory.c | 1 mm/migrate.c | 1 mm/mprotect.c | 1 8 files changed, 63 insertions(+), 5 deletions(-)
include/linux/memory-tiers.h renamed from include/linux/memory-tiers.h~mm-demotion-update-node_is_toptier-to-work-with-memory-tiers +11 -0
@@ -40,6 +40,7 @@ void clear_node_memory_type(int node, st#ifdef CONFIG_MIGRATION int next_demotion_node (int node);void node_get_allowed_targets (pg_data_t *pgdat,nodemask_t *targets); +bool node_is_toptier (int node);#else static inline int next_demotion_node (int node) {
@@ -50,6 +51,11 @@ static inline void node_get_allowed_targ { *targets =NODE_MASK_NONE ; } + +static inline bool node_is_toptier (int node) +{ +return true; +}#endif #else
@@ -87,5 +93,10 @@ static inline void node_get_allowed_targ { *targets =NODE_MASK_NONE ; } + +static inline bool node_is_toptier (int node) +{ +return true; +}#endif /* CONFIG_NUMA */ #endif /* _LINUX_MEMORY_TIERS_H */
include/linux/node.h renamed from include/linux/node.h~mm-demotion-update-node_is_toptier-to-work-with-memory-tiers +0 -5
@@ -185,9 +185,4 @@ static inline void register_hugetlbfs_wi#define to_node (device) container_of(device, struct node, dev) -static inline bool node_is_toptier (int node) -{ -return node_state (node,N_CPU ); -} -#endif /* _LINUX_NODE_H_ */
mm/huge_memory.c renamed from mm/huge_memory.c~mm-demotion-update-node_is_toptier-to-work-with-memory-tiers +1 -0
@@ -36,6 +36,7 @@#include <linux/numa.h> #include <linux/page_owner.h> #include <linux/sched/sysctl.h> +#include <linux/memory-tiers.h> #include <asm/tlb.h> #include <asm/pgalloc.h>
mm/memory-tiers.c renamed from mm/memory-tiers.c~mm-demotion-update-node_is_toptier-to-work-with-memory-tiers +47 -0
65 lines not on this page · raw message
mm/migrate.c renamed from mm/migrate.c~mm-demotion-update-node_is_toptier-to-work-with-memory-tiers +1 -0
@@ -50,6 +50,7 @@#include <linux/memory.h> #include <linux/random.h> #include <linux/sched/sysctl.h> +#include <linux/memory-tiers.h> #include <asm/tlbflush.h>
mm/mprotect.c renamed from mm/mprotect.c~mm-demotion-update-node_is_toptier-to-work-with-memory-tiers +1 -0
@@ -31,6 +31,7 @@#include <linux/pgtable.h> #include <linux/sched/sysctl.h> #include <linux/userfaultfd_k.h> +#include <linux/memory-tiers.h> #include <asm/cacheflush.h> #include <asm/mmu_context.h> #include <asm/tlbflush.h>
kernel/sched/fair.c renamed from kernel/sched/fair.c~mm-demotion-update-node_is_toptier-to-work-with-memory-tiers +1 -0
@@ -40,6 +40,7 @@#include <linux/cpuidle.h> #include <linux/interrupt.h> +#include <linux/memory-tiers.h> #include <linux/mempolicy.h> #include <linux/mutex_api.h> #include <linux/profile.h>
mm/memory.c renamed from mm/memory.c~mm-demotion-update-node_is_toptier-to-work-with-memory-tiers +1 -0
@@ -66,6 +66,7 @@#include <linux/gfp.h> #include <linux/migrate.h> #include <linux/string.h> +#include <linux/memory-tiers.h> #include <linux/debugfs.h> #include <linux/userfaultfd_k.h> #include <linux/dax.h>
_
Patches currently in -mm which might be from [email protected] are