mm: avoid pages migrated to different zone [1/1]
authortao zeng <tao.zeng@amlogic.com>
Mon, 29 Oct 2018 03:12:11 +0000 (11:12 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 30 Oct 2018 06:44:58 +0000 (23:44 -0700)
commit5d782cb05790798da1d5ab923084ca7390720367
tree644e05a7462c6bae55dc44e762f50a16e84016e2
parentde88721302dafc21993b7215ecb0c488897277f2
mm: avoid pages migrated to different zone [1/1]

PD#SWPL-881

Problem:
Amlogic modified code when compatcion from normal case.
And side effect is that pages in normal zone maybe migrated to
highmem zone. Which caused page_address get a NULL value and
kernel panic occurred.

Solution:
Avoid pages migarte to different zone by adding forbid_to_cma
flags.

Verify:
P212

Change-Id: I1d9c6653dc1069562db3c1be3f53a3510a51f0d1
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
include/linux/amlogic/aml_cma.h
mm/compaction.c