mm/gup: check FOLL_CMA eariler than others
authorCho KyongHo <pullip.cho@samsung.com>
Mon, 20 Aug 2018 12:43:19 +0000 (21:43 +0900)
committerhskang <hs1218.kang@samsung.com>
Mon, 27 Aug 2018 07:22:03 +0000 (16:22 +0900)
commit457c2695bed85a72e1bf237c69b74c7daa33234c
treee043e64bd46c20ec8b2d2b37a67e484eb8ca45e4
parent27217efd9a3cfcabe63e82501c999a0397f569bb
mm/gup: check FOLL_CMA eariler than others

__need_migrate_cma_page() checks a lot of conditions if the current
get_user_pages() request need to migrate CMA pages to some other pages.
But FOLL_CMA is given by very few users. We don't need to spend time
for condition check for the users without FOLL_CMA.

Change-Id: I973b3c99140e71fbf78cb6280e94ef5e97c9824a
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
mm/gup.c