mm: cma: fix alignment requirements for contiguous regions
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 27 Aug 2012 18:27:19 +0000 (20:27 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 2 Mar 2013 20:11:34 +0000 (22:11 +0200)
commitf02993a59ccd19d78c2bfb2613169e02302bd6c2
tree5cef4d43a7c27a4ef9e7fa478842a608ed710625
parent1d333d23008dd635de5c4f158b492019f40b02e6
mm: cma: fix alignment requirements for contiguous regions

Contiguous Memory Allocator requires each of its regions to be aligned
in such a way that it is possible to change migration type for all
pageblocks holding it and then isolate page of largest possible order from
the buddy allocator (which is MAX_ORDER-1). This patch relaxes alignment
requirements by one order, because MAX_ORDER alignment is not really
needed.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
CC: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
drivers/base/dma-contiguous.c