The patch titled Subject: mm: cma: fix accounting of CMA pages placed in high memory has been added to the -mm tree. Its filename is mm-cma-fix-accounting-of-cma-pages-placed-in-high-memory.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> Subject: 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@xxxxxxxxxxx> Acked-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN mm/page_alloc.c~mm-cma-fix-accounting-of-cma-pages-placed-in-high-memory mm/page_alloc.c --- a/mm/page_alloc.c~mm-cma-fix-accounting-of-cma-pages-placed-in-high-memory +++ a/mm/page_alloc.c @@ -787,6 +787,10 @@ void __init init_cma_reserved_pageblock( set_pageblock_migratetype(page, MIGRATE_CMA); __free_pages(page, pageblock_order); totalram_pages += pageblock_nr_pages; +#ifdef CONFIG_HIGHMEM + if (PageHighMem(page)) + totalhigh_pages += pageblock_nr_pages; +#endif } #endif _ Patches currently in -mm which might be from m.szyprowski@xxxxxxxxxxx are linux-next.patch cma-make-putback_lru_pages-call-conditional.patch cma-make-putback_lru_pages-call-conditional-fix.patch mm-cma-fix-accounting-of-cma-pages-placed-in-high-memory.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html