Skip to content

Commit

Permalink
mm/nommu.c: Switch __get_user_pages_unlocked() to use __get_user_pages()
Browse files Browse the repository at this point in the history
Extracted from commit cde7014 "mm/gup: Overload get_user_pages()
functions".  This is needed before picking commit 768ae30
"mm: replace get_user_pages() write/force parameters with gup_flags".

Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
bwh-ct authored and gregkh committed Dec 17, 2018
1 parent ab424c8 commit ff099ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ long __get_user_pages_unlocked(struct task_struct *tsk, struct mm_struct *mm,
{
long ret;
down_read(&mm->mmap_sem);
ret = get_user_pages(tsk, mm, start, nr_pages, write, force,
pages, NULL);
ret = __get_user_pages(tsk, mm, start, nr_pages, gup_flags, pages,
NULL, NULL);
up_read(&mm->mmap_sem);
return ret;
}
Expand Down

0 comments on commit ff099ed

Please sign in to comment.