mm-memory_hotplug-cleanup-after-removal-of-pfn_valid_within.patch removed from -mm tree
The patch titled
Subject: mm: memory_hotplug: cleanup after removal of pfn_valid_within()
has been removed from the -mm tree. Its filename was
mm-memory_hotplug-cleanup-after-removal-of-pfn_valid_within.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mike Rapoport <[email protected]>
Subject: mm: memory_hotplug: cleanup after removal of pfn_valid_within()
When test_pages_in_a_zone() used pfn_valid_within() is has some logic surrounding pfn_valid_within() checks.
Since pfn_valid_within() is gone, this logic can be removed.
Signed-off-by Mike Rapoport <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/memory_hotplug.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
mm/memory_hotplug.c renamed from mm/memory_hotplug.c~mm-memory_hotplug-cleanup-after-removal-of-pfn_valid_within +3 -6
@@ -1298,7 +1298,7 @@ struct zone *test_pages_in_a_zone(unsignunsigned long pfn, sec_end_pfn;struct zone *zone =NULL ;struct page *page; -int i; +for (pfn = start_pfn, sec_end_pfn =SECTION_ALIGN_UP (start_pfn +1 ); pfn < end_pfn; pfn = sec_end_pfn, sec_end_pfn +=PAGES_PER_SECTION ) {
@@ -1307,13 +1307,10 @@ struct zone *test_pages_in_a_zone(unsigncontinue ;for (; pfn < sec_end_pfn && pfn < end_pfn; pfn +=MAX_ORDER_NR_PAGES ) { - i =0 ; -if (i ==MAX_ORDER_NR_PAGES || pfn + i >= end_pfn) -continue ;/* Check if we got outside of the zone */ -if (zone && !zone_spans_pfn (zone, pfn + i)) +if (zone && !zone_spans_pfn (zone, pfn))return NULL ; - page =pfn_to_page (pfn + i); + page =pfn_to_page (pfn);if (zone &&page_zone (page) != zone)return NULL ; zone =page_zone (page);
_
Patches currently in -mm which might be from [email protected] are