If POLL_CMA is not set or POLL_GET is not set,
get_user_pages need not to migrate CMA pages.
But current conditional expression, get_user_pages
need not to migration if both POLL_GET and POLL_CMA
is not set.
Change-Id: I243c8b03ae8099027559567231f09c7fb8fede51
Signed-off-by: Hyesoo Yu <hyesoo.yu@samsung.com>
struct vm_area_struct *vma,
unsigned long start, unsigned int flags)
{
- if (!(flags & (FOLL_GET | FOLL_CMA)))
+ if (!(flags & FOLL_GET) || !(flags & FOLL_CMA))
return false;
if (!is_migrate_cma_page(page))