Calculate the number of pageblocks within a range properly
Patch page-allocator-change-migratetype-for-all-pageblocks-within-a-high-order-page-during-__rmqueue_fallback is meant to change the pageblock ownership of each pageblock within a given range. This is necessary when the buddy to be split is of higher order than the pageblock_order. However, the calculation was wrong leading to crashes on ia-64 and slightly incorrect behaviour on x86. This patch corrects the calculation. Signed-off-by: Mel Gorman <mel@csn.ul.ie> Cc: Andy Whitcroft <apw@shadowen.org> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Showing
Please register or sign in to comment