]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cma: count free CMA pages
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 26 Sep 2012 01:33:43 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:26:35 +0000 (17:26 +1000)
commitaed7af751d24c0a244de046bd0cb7f4232642e93
tree2f8ebbeb42cf5d4ecb566d15b23e2bcdb2c9f548
parentaca015b66b32adeb243892ce57e227b27319b88e
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