aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2015-09-04 15:47:55 -0700
committerLinus Torvalds <[email protected]>2015-09-04 16:54:41 -0700
commit1027e4436b6a5c413c95d95e50d0f26348a602ac (patch)
tree50e449c857ede1011ba8a3c8d7714ce98602ed32 /lib/mpi/mpiutil.c
parentd899844e9c98c9c74b4d9926fd3bd66a225f6978 (diff)
mm: make GUP handle pfn mapping unless FOLL_GET is requested
With DAX, pfn mapping becoming more common. The patch adjusts GUP code to cover pfn mapping for cases when we don't need struct page to proceed. To make it possible, let's change follow_page() code to return -EEXIST error code if proper page table entry exists, but no corresponding struct page. __get_user_page() would ignore the error code and move to the next page frame. The immediate effect of the change is working MAP_POPULATE and mlock() on DAX mappings. [[email protected]: fix arm64 build] Signed-off-by: Kirill A. Shutemov <[email protected]> Reviewed-by: Toshi Kani <[email protected]> Acked-by: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions