Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff099ed7 authored by Ben Hutchings's avatar Ben Hutchings Committed by Greg Kroah-Hartman
Browse files

mm/nommu.c: Switch __get_user_pages_unlocked() to use __get_user_pages()



Extracted from commit cde70140fed8 "mm/gup: Overload get_user_pages()
functions".  This is needed before picking commit 768ae309a961
"mm: replace get_user_pages() write/force parameters with gup_flags".

Signed-off-by: default avatarBen Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ab424c8e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}