]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cma: count free CMA pages
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 28 Sep 2012 00:19:38 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Sep 2012 06:07:44 +0000 (16:07 +1000)
commit30559d22ab5fe629f2bc3884b23cc9300259f5a5
treecff2b379da173451fdd0a38670fa6493a0aece87
parentc2e00f12a5b37cd27c2ba49e8ab9e8654b56109b
cma: count free CMA pages

Add NR_FREE_CMA_PAGES counter to be later used for checking watermark in
__zone_watermark_ok().  For simplicity and to avoid #ifdef hell make this
counter always available (not only when CONFIG_CMA=y).

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
include/linux/vmstat.h
mm/page_alloc.c
mm/page_isolation.c
mm/vmstat.c