• Mel Gorman's avatar
    Calculate the number of pageblocks within a range properly · 4553616e
    Mel Gorman authored
    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: default avatarMel 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    4553616e
page_alloc.c 138 KB