mm-hotplug-remove-unnecessary-bug_on-in-__offline_pages.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mm-hotplug-remove-unnecessary-bug_on-in-__offline_pages.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 12 Sep 2013 12:43:39 -0700
The patch titled
Subject: mm/hotplug: remove unnecessary BUG_ON in __offline_pages()
has been removed from the -mm tree. Its filename was
mm-hotplug-remove-unnecessary-bug_on-in-__offline_pages.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Xishi Qiu <[email protected]>
Subject: mm/hotplug: remove unnecessary BUG_ON in __offline_pages()
I think we can remove "BUG_ON(start_pfn >= end_pfn)" in __offline_pages(), because in memory_block_action() "nr_pages = PAGES_PER_SECTION * sections_per_block" is always greater than 0.
memory_block_action()
offline_pages() __offline_pages() BUG_ON(start_pfn >= end_pfn)
In v2.6.32, If info->length==0, this way may hit this BUG_ON(). acpi_memory_disable_device()
remove_memory(info->start_addr, info->length) offline_pages()
A later Fujitsu patch renamed this function and the BUG_ON() is unnecessary.
---
mm/memory_hotplug.c | 1 - 1 file changed, 1 deletion(-)
mm/memory_hotplug.c renamed from mm/memory_hotplug.c~mm-hotplug-remove-unnecessary-bug_on-in-__offline_pages +0 -1
@@ -1472,7 +1472,6 @@ static int __ref __offline_pages(unsignestruct zone *zone;struct memory_notify arg; -BUG_ON (start_pfn >= end_pfn);/* at least, alignment against pageblock is necessary */ if (!IS_ALIGNED (start_pfn, pageblock_nr_pages))return -EINVAL ;
_
Patches currently in -mm which might be from [email protected] are
origin.patch