mm-memory_hotplug-cleanup-__add_pages.patch removed from -mm tree
The patch titled
Subject: mm/memory_hotplug.c: cleanup __add_pages()
has been removed from the -mm tree. Its filename was
mm-memory_hotplug-cleanup-__add_pages.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: mm/memory_hotplug.c: cleanup __add_pages()
Let's drop the basically unused section stuff and simplify. The logic now matches the logic in __remove_pages().
Signed-off-by David Hildenbrand <[email protected]>
Reviewed-by Baoquan He <[email protected]>
Reviewed-by Wei Yang <[email protected]>
Cc Segher Boessenkool <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Dan Williams <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/memory_hotplug.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-)
mm/memory_hotplug.c renamed from mm/memory_hotplug.c~mm-memory_hotplug-cleanup-__add_pages +2 -5
@@ -307,8 +307,9 @@ static int check_hotplug_memory_addressaint __ref __add_pages (int nid,unsigned long pfn,unsigned long nr_pages,struct mhp_restrictions *restrictions) { +const unsigned long end_pfn = pfn + nr_pages; +unsigned long cur_nr_pages;int err; -unsigned long nr, start_sec, end_sec;struct vmem_altmap *altmap = restrictions->altmap; err =check_hotplug_memory_addressable (pfn, nr_pages);
@@ -331,18 +332,13 @@ int __ref __add_pages(int nid, unsignedif (err)return err; - start_sec =pfn_to_section_nr (pfn); - end_sec =pfn_to_section_nr (pfn + nr_pages -1 ); -for (nr = start_sec; nr <= end_sec; nr++) { -unsigned long pfns;