Commit 1aaa09ca authored by Al Viro's avatar Al Viro

fsl_hypervisor: switch to get_user_pages_fast()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0ca36a6b
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment