Commit e1a58a54 authored by Al Viro's avatar Al Viro

atomisp: use get_user_pages_fast()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 43bfe7bc
...@@ -1029,10 +1029,8 @@ static int alloc_user_pages(struct hmm_buffer_object *bo, ...@@ -1029,10 +1029,8 @@ static int alloc_user_pages(struct hmm_buffer_object *bo,
} else { } else {
/*Handle frame buffer allocated in user space*/ /*Handle frame buffer allocated in user space*/
mutex_unlock(&bo->mutex); mutex_unlock(&bo->mutex);
down_read(&current->mm->mmap_sem); page_nr = get_user_pages_fast((unsigned long)userptr,
page_nr = get_user_pages((unsigned long)userptr, (int)(bo->pgnr), 1, pages);
(int)(bo->pgnr), 1, pages, NULL);
up_read(&current->mm->mmap_sem);
mutex_lock(&bo->mutex); mutex_lock(&bo->mutex);
bo->mem_type = HMM_BO_MEM_TYPE_USER; bo->mem_type = HMM_BO_MEM_TYPE_USER;
} }
......
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