mm: cma: fix accounting of CMA pages placed in high memory
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 12 Feb 2013 21:46:24 +0000 (13:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 12 Feb 2013 22:34:00 +0000 (14:34 -0800)
commit41a7973447b0b8717f0a214d4328dc31ec2291d7
tree5a6f61b306ed429cad999a59852f5b8e993454af
parent6e6668845fe593414a938b7726d6359b5570ac5a
mm: cma: fix accounting of CMA pages placed in high memory

The total number of low memory pages is determined as totalram_pages -
totalhigh_pages, so without this patch all CMA pageblocks placed in
highmem were accounted to low memory.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c