aboutsummaryrefslogtreecommitdiffstats
path: root/lib/genalloc.c
diff options
context:
space:
mode:
authorXishi Qiu <[email protected]>2013-09-11 21:21:41 +0000
committerLinus Torvalds <[email protected]>2013-09-11 22:57:35 +0000
commit37b000b640741132eddaa9fbeca1f988139ad7e2 (patch)
tree8456554ec797adf9c03c56173c48c2082bcdb40e /lib/genalloc.c
parentmm, vmalloc: use well-defined find_last_bit() func (diff)
downloadkernel-37b000b640741132eddaa9fbeca1f988139ad7e2.tar.gz
kernel-37b000b640741132eddaa9fbeca1f988139ad7e2.zip
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. Signed-off-by: Xishi Qiu <[email protected]> Reviewed-by: Dave Hansen <[email protected]> Cc: Toshi Kani <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions