mm/cma_debug: correct size input to bitmap function
authorJoonsoo Kim <js1304@gmail.com>
Fri, 17 Jul 2015 23:24:23 +0000 (16:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Jul 2015 23:39:54 +0000 (16:39 -0700)
commitd56e84b4064d65285161d6bfa04382e1cdd4e49c
treeed35ca7cffee972c75be915ca25298dfeea0c78c
parent2292c0b1c4a24da54e29b3cf0645b4a4d9c3f2c7
mm/cma_debug: correct size input to bitmap function

In CMA, 1 bit in bitmap means 1 << order_per_bits pages so size of
bitmap is cma->count >> order_per_bits rather than just cma->count.
This patch fixes it.

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Stefan Strogin <stefan.strogin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/cma_debug.c