]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cma: fix watermark checking
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 26 Sep 2012 01:33:44 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:45:01 +0000 (15:45 +1000)
commita42f1a729f0e46b386609407d3ad131f01116d78
tree28a42e3a4764eeb741df51501c96ec819a3ee318
parente4f989a6d94fcf700f9f17b959fd0a2f9d08e448
cma: fix watermark checking

* Add ALLOC_CMA alloc flag and pass it to [__]zone_watermark_ok()
  (from Minchan Kim).

* During watermark check decrease available free pages number by
  free CMA pages number if necessary (unmovable allocations cannot
  use pages from CMA areas).

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
mm/compaction.c
mm/page_alloc.c