mm: Add is_migrate_cma_page
authorLaura Abbott <labbott@redhat.com>
Tue, 19 Jul 2016 22:00:04 +0000 (15:00 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 26 Jul 2016 21:41:46 +0000 (14:41 -0700)
commit7c15d9bb8231f998ae7dc0b72415f5215459f7fb
tree1e94e7b8dfd0ff09928860d83af6b3492a158472
parent523d939ef98fd712632d93a5a2b588e477a7565e
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>
include/linux/mmzone.h