mm: Add is_migrate_cma_page
authorLaura Abbott <labbott@redhat.com>
Tue, 19 Jul 2016 22:00:04 +0000 (15:00 -0700)
committerAlex Shi <alex.shi@linaro.org>
Sat, 27 Aug 2016 03:23:38 +0000 (11:23 +0800)
commit472dd6904d7bfd38d86ec3b8071b7260b51c290d
treee43df6eb13252383828a013515104c2337e58c1d
parent21a48ffe4dff2194cceeecad0436d920c267027c
mm: Add is_migrate_cma_page

Code such as hardened user copy[1] needs a way to tell if a
page is CMA or not. Add is_migrate_cma_page in a similar way
to is_migrate_isolate_page.

[1]http://article.gmane.org/gmane.linux.kernel.mm/155238

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
(cherry picked from commit 7c15d9bb8231f998ae7dc0b72415f5215459f7fb)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
include/linux/mmzone.h