diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-01-30 02:45:08 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-22 23:14:18 -0400 |
commit | 1aaa09caedc1d999fb324b4b77a88167bdfc531a (patch) | |
tree | 0ae1f871da51bb6f632cc4f36a263ef2114e9568 /drivers | |
parent | 0ca36a6bbd85bad72596a15e1505483352333c88 (diff) | |
download | op-kernel-dev-1aaa09caedc1d999fb324b4b77a88167bdfc531a.zip op-kernel-dev-1aaa09caedc1d999fb324b4b77a88167bdfc531a.tar.gz |
fsl_hypervisor: switch to get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/virt/fsl_hypervisor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/virt/fsl_hypervisor.c b/drivers/virt/fsl_hypervisor.c index d993df5..d70ad6d 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 */ |