[folded-merged] mm-memory_hotplug-do-not-associate-hotadded-memory-to-zones-until-online-fix.patch removed from -mm tree

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

 



The patch titled
     Subject: include/linux/mmzone.h: simplify zone_intersects()
has been removed from the -mm tree.  Its filename was
     mm-memory_hotplug-do-not-associate-hotadded-memory-to-zones-until-online-fix.patch

This patch was dropped because it was folded into mm-memory_hotplug-do-not-associate-hotadded-memory-to-zones-until-online.patch

------------------------------------------------------
From: Wei Yang <richard.weiyang@xxxxxxxxx>
Subject: include/linux/mmzone.h: simplify zone_intersects()

To make sure a range intersects a zone, only two comparisons are
necessary.  Simplify the function a little.

Link: http://lkml.kernel.org/r/20170616092335.5177-1-richard.weiyang@xxxxxxxxx
Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/mmzone.h |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff -puN include/linux/mmzone.h~mm-memory_hotplug-do-not-associate-hotadded-memory-to-zones-until-online-fix include/linux/mmzone.h
--- a/include/linux/mmzone.h~mm-memory_hotplug-do-not-associate-hotadded-memory-to-zones-until-online-fix
+++ a/include/linux/mmzone.h
@@ -541,15 +541,11 @@ static inline bool zone_intersects(struc
 {
 	if (zone_is_empty(zone))
 		return false;
-	if (start_pfn >= zone_end_pfn(zone))
+	if (start_pfn >= zone_end_pfn(zone) ||
+	    start_pfn + nr_pages <= zone->zone_start_pfn)
 		return false;
 
-	if (zone->zone_start_pfn <= start_pfn)
-		return true;
-	if (start_pfn + nr_pages > zone->zone_start_pfn)
-		return true;
-
-	return false;
+	return true;
 }
 
 /*
_

Patches currently in -mm which might be from richard.weiyang@xxxxxxxxx are

mm-slub-remove-a-redundant-assignment-in-___slab_alloc.patch
mm-slub-reset-cpu_slabs-pointer-in-deactivate_slab.patch
mm-slub-pack-red_left_pad-with-another-int-to-save-a-word.patch
mm-slub-wrap-cpu_slab-partial-in-config_slub_cpu_partial.patch
mm-slub-wrap-kmem_cache-cpu_partial-in-config-config_slub_cpu_partial.patch
mm-nobootmem-return-0-when-start_pfn-equals-end_pfn.patch
mm-memory_hotplug-do-not-associate-hotadded-memory-to-zones-until-online.patch
mm-memory_hotplug-do-not-associate-hotadded-memory-to-zones-until-online-fix-2.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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