mm/nommu.c: Switch __get_user_pages_unlocked() to use __get_user_pages()
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Sun, 16 Dec 2018 23:50:08 +0000 (23:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 20:55:16 +0000 (21:55 +0100)
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 <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/nommu.c

index 5462ed88a548165806385695fe6c54ce8149bc2e..f5322195dbcd40c1e4ef3119189b67e7936aee7e 100644 (file)
@@ -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;
 }