[PATCH] mm: bootmem: fix free_all_bootmem_core with odd bitmap alignment

2013-01-04 Thread Max Filippov
Currently free_all_bootmem_core ignores that node_min_pfn may be not multiple of BITS_PER_LONG. E.g. commit 6dccdcbe "mm: bootmem: fix checking the bitmap when finally freeing bootmem" shifts vec by lower bits of start instead of lower bits of idx. Also if (IS_ALIGNED(start, BITS_PER_LONG) &&

[PATCH] mm: bootmem: fix free_all_bootmem_core with odd bitmap alignment

2013-01-04 Thread Max Filippov
Currently free_all_bootmem_core ignores that node_min_pfn may be not multiple of BITS_PER_LONG. E.g. commit 6dccdcbe mm: bootmem: fix checking the bitmap when finally freeing bootmem shifts vec by lower bits of start instead of lower bits of idx. Also if (IS_ALIGNED(start, BITS_PER_LONG) vec