mm-memory_hotplug-simplify-calculation-of-number-of-pages-in-__remove_pages.patch removed from -mm tree
The patch titled
Subject: mm/memory_hotplug.c: simplify calculation of number of pages in __remove_pages()
has been removed from the -mm tree. Its filename was
mm-memory_hotplug-simplify-calculation-of-number-of-pages-in-__remove_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: simplify calculation of number of pages in __remove_pages()
In commit 52fb87c81f11 ("mm/memory_hotplug: cleanup __remove_pages()"), we cleaned up __remove_pages(), and introduced a shorter variant to calculate the number of pages to the next section boundary.
Turns out we can make this calculation easier to read. We always want to have the number of pages (> 0) to the next section boundary, starting from the current pfn.
We'll clean up __remove_pages() in a follow-up patch and directly make use of this computation.
---
mm/memory_hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/memory_hotplug.c renamed from mm/memory_hotplug.c~mm-memory_hotplug-simplify-calculation-of-number-of-pages-in-__remove_pages +2 -1
@@ -534,7 +534,8 @@ void __remove_pages(unsigned long pfn, ufor (; pfn < end_pfn; pfn += cur_nr_pages) {cond_resched ();/* Select all remaining pages up to the next section boundary */ - cur_nr_pages =min (end_pfn - pfn, -(pfn |PAGE_SECTION_MASK )); + cur_nr_pages =min (end_pfn - pfn, +SECTION_ALIGN_UP (pfn +1 ) - pfn);__remove_section (pfn, cur_nr_pages, map_offset, altmap); map_offset =0 ; }
_
Patches currently in -mm which might be from [email protected] are
drivers-base-memoryc-cache-memory-blocks-in-xarray-to-accelerate-lookup-fix.patch