|
@@ -184,7 +184,7 @@ long mm_iommu_get(struct mm_struct *mm, unsigned long ua, unsigned long entries,
|
|
* of the CMA zone if possible. NOTE: faulting in + migration
|
|
* of the CMA zone if possible. NOTE: faulting in + migration
|
|
* can be expensive. Batching can be considered later
|
|
* can be expensive. Batching can be considered later
|
|
*/
|
|
*/
|
|
- if (get_pageblock_migratetype(page) == MIGRATE_CMA) {
|
|
|
|
|
|
+ if (is_migrate_cma_page(page)) {
|
|
if (mm_iommu_move_page_from_cma(page))
|
|
if (mm_iommu_move_page_from_cma(page))
|
|
goto populate;
|
|
goto populate;
|
|
if (1 != get_user_pages_fast(ua + (i << PAGE_SHIFT),
|
|
if (1 != get_user_pages_fast(ua + (i << PAGE_SHIFT),
|