[folded-merged] mm-memory_hotplug-clean-up-node_states_check_changes_offline-v2.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm-memory_hotplug-clean-up-node_states_check_changes_offline-v2
has been removed from the -mm tree.  Its filename was
     mm-memory_hotplug-clean-up-node_states_check_changes_offline-v2.patch

This patch was dropped because it was folded into mm-memory_hotplug-clean-up-node_states_check_changes_offline.patch

------------------------------------------------------
From: Oscar Salvador <osalvador@xxxxxxx>
Subject: mm-memory_hotplug-clean-up-node_states_check_changes_offline-v2

- Address feedback from Pavel
- Re-write his way, as it is better
- Add Reviewed-by from Pavel

Link: http://lkml.kernel.org/r/20180921132634.10103-5-osalvador@xxxxxxxxxxxxxxxxxx
Signed-off-by: Oscar Salvador <osalvador@xxxxxxx>
Reviewed-by: Pavel Tatashin <pavel.tatashin@xxxxxxxxxxxxx>
Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
Cc: David Hildenbrand <david@xxxxxxxxxx>
Cc: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
Cc: Mathieu Malaterre <malat@xxxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxx>
Cc: <yasu.isimatu@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


--- a/mm/memory_hotplug.c~mm-memory_hotplug-clean-up-node_states_check_changes_offline-v2
+++ a/mm/memory_hotplug.c
@@ -1465,6 +1465,10 @@ static void node_states_check_changes_of
 	unsigned long present_pages = 0;
 	enum zone_type zt;
 
+	arg->status_change_nid = -1;
+	arg->status_change_nid_normal = -1;
+	arg->status_change_nid_high = -1;
+
 	/*
 	 * Check whether node_states[N_NORMAL_MEMORY] will be changed.
 	 * If the memory to be offline is within the range
@@ -1477,8 +1481,6 @@ static void node_states_check_changes_of
 		present_pages += pgdat->node_zones[zt].present_pages;
 	if (zone_idx(zone) <= ZONE_NORMAL && nr_pages >= present_pages)
 		arg->status_change_nid_normal = zone_to_nid(zone);
-	else
-		arg->status_change_nid_normal = -1;
 
 #ifdef CONFIG_HIGHMEM
 	/*
@@ -1489,15 +1491,9 @@ static void node_states_check_changes_of
 	 * we determine that the zones in that range become empty,
 	 * we need to clear the node for N_HIGH_MEMORY.
 	 */
-	zt = ZONE_HIGHMEM;
-	present_pages += pgdat->node_zones[zt].present_pages;
-
-	if (zone_idx(zone) <= zt && nr_pages >= present_pages)
+	present_pages += pgdat->node_zones[ZONE_HIGHMEM].present_pages;
+	if (zone_idx(zone) <= ZONE_HIGHMEM && nr_pages >= present_pages)
 		arg->status_change_nid_high = zone_to_nid(zone);
-	else
-		arg->status_change_nid_high = -1;
-#else
-	arg->status_change_nid_high = arg->status_change_nid_normal;
 #endif
 
 	/*
@@ -1510,13 +1506,10 @@ static void node_states_check_changes_of
 	 * we know that the node will become empty, and so, we can clear
 	 * it for N_MEMORY as well.
 	 */
-	zt = ZONE_MOVABLE;
-	present_pages += pgdat->node_zones[zt].present_pages;
+	present_pages += pgdat->node_zones[ZONE_MOVABLE].present_pages;
 
 	if (nr_pages >= present_pages)
 		arg->status_change_nid = zone_to_nid(zone);
-	else
-		arg->status_change_nid = -1;
 }
 
 static void node_states_clear_node(int node, struct memory_notify *arg)
_

Patches currently in -mm which might be from osalvador@xxxxxxx are

mm-page_alloc-clean-up-check_for_memory.patch
mm-memory_hotplug-spare-unnecessary-calls-to-node_set_state.patch
mm-memory_hotplug-tidy-up-node_states_clear_node.patch
mm-memory_hotplug-simplify-node_states_check_changes_online.patch
mm-memory_hotplug-clean-up-node_states_check_changes_offline.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux