From: Al Viro Date: Mon, 30 Jan 2017 07:45:08 +0000 (-0500) Subject: fsl_hypervisor: switch to get_user_pages_fast() X-Git-Tag: v4.15-rc1~67^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1aaa09caedc1d999fb324b4b77a88167bdfc531a;p=thirdparty%2Fkernel%2Flinux.git fsl_hypervisor: switch to get_user_pages_fast() Signed-off-by: Al Viro --- diff --git a/drivers/virt/fsl_hypervisor.c b/drivers/virt/fsl_hypervisor.c index d993df5586c00..d70ad6d388796 100644 --- a/drivers/virt/fsl_hypervisor.c +++ b/drivers/virt/fsl_hypervisor.c @@ -243,8 +243,8 @@ static long ioctl_memcpy(struct fsl_hv_ioctl_memcpy __user *p) sg_list = PTR_ALIGN(sg_list_unaligned, sizeof(struct fh_sg_list)); /* Get the physical addresses of the source buffer */ - num_pinned = get_user_pages_unlocked(param.local_vaddr - lb_offset, - num_pages, pages, (param.source == -1) ? 0 : FOLL_WRITE); + num_pinned = get_user_pages_fast(param.local_vaddr - lb_offset, + num_pages, param.source != -1, pages); if (num_pinned != num_pages) { /* get_user_pages() failed */