[COMMON] mm: cma page migration for pinned pages
authorJinsung Yang <jsgood.yang@samsung.com>
Tue, 3 Mar 2015 05:24:46 +0000 (14:24 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:59 +0000 (20:22 +0300)
commit7b1e8331d9bbc4ce528b1a0596b1febc805b7dbf
tree4de84b7d266580efb6bdace8bac58501f1d95fbc
parentaf734508cbd933e0ab5748de54da83f553158572
[COMMON] mm: cma page migration for pinned pages

If the changes in the patch 'cma: redirect page allocation to CMA' were
applied, many user pages could be allocated from cma page block. However,
this can cause migration failures due to pinned pages by __get_user_pages().
This patch adds to support cma page migration at page pinning time if gup_flags
has FOLL_CMA.

Change-Id: I70389f1ddee9697af653c4a50eab161925113979
Signed-off-by: Jinsung Yang <jsgood.yang@samsung.com>
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
include/linux/mm.h
mm/gup.c