memcg-do-not-tweak-node-in-alloc_mem_cgroup_per_node_info.patch removed from -mm tree
The patch titled
Subject: memcg: do not tweak node in alloc_mem_cgroup_per_node_info
has been removed from the -mm tree. Its filename was
memcg-do-not-tweak-node-in-alloc_mem_cgroup_per_node_info.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: memcg: do not tweak node in alloc_mem_cgroup_per_node_info
alloc_mem_cgroup_per_node_info is allocated for each possible node and this used to be a problem because !node_online nodes didn't have appropriate data structure allocated. This has changed by "mm: handle uninitialized numa nodes gracefully" so we can drop the special casing here.
---
mm/memcontrol.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-do-not-tweak-node-in-alloc_mem_cgroup_per_node_info +2 -12
@@ -5020,18 +5020,8 @@ struct mem_cgroup *mem_cgroup_from_id(unstatic int alloc_mem_cgroup_per_node_info (struct mem_cgroup *memcg,int node) {struct mem_cgroup_per_node *pn; -int tmp = node; -/* -* This routine is called against possible nodes. -* But it's BUG to call kmalloc() against offline node. -* -* TODO: this routine can waste much memory for nodes which will -* never be onlined. It's better to use memory hotplug callback -* function. -*/ -if (!node_state (node,N_NORMAL_MEMORY )) - tmp =-1 ; - pn =kzalloc_node (sizeof (*pn),GFP_KERNEL , tmp); + + pn =kzalloc_node (sizeof (*pn),GFP_KERNEL , node);if (!pn)return 1 ;
_
Patches currently in -mm which might be from [email protected] are
mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order.patch mm-page_alloc-add-penalty-to-local_node.patch