mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
fsl_hypervisor: switch to get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
0ca36a6bbd
commit
1aaa09caed
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user