From ff099ed77421a5dc8206bb61e5a598b28ab39ebb Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 16 Dec 2018 23:50:08 +0000 Subject: 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: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- mm/nommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mm/nommu.c') diff --git a/mm/nommu.c b/mm/nommu.c index 5462ed88a548..f5322195dbcd 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -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; } -- cgit v1.2.3