mm: exclude free cma pages when calculate watermark [1/1]
authortao zeng <tao.zeng@amlogic.com>
Thu, 1 Nov 2018 02:18:16 +0000 (10:18 +0800)
committertao zeng <tao.zeng@amlogic.com>
Thu, 1 Nov 2018 02:18:16 +0000 (10:18 +0800)
commit1628236e993677984b597e5dd14c2c2478fffb85
tree8ad009d265832a2b3a9673a5dcf2ecd6b2f8c607
parent098df024a6d5bd305decd39dae80d1a080e8d597
mm: exclude free cma pages when calculate watermark [1/1]

PD#SWPL-1210

Problem:
Some drivers(eth/wifi) occasionally can't allocate memory under
atomic context. From mem status print, there are enough free
pages but most of them are CMA.

Solution:
Exclude free cma pages when calculate water mark. This can push
kswapd/compaction work more aggressive.

Verify:
P212

Change-Id: Ia723f21c0316eff1a38e759ff9f044bb59aa8efa
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
mm/page_alloc.c