Commit bb89081a authored by Ben Hutchings's avatar Ben Hutchings Committed by Juerg Haefliger

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

BugLink: https://bugs.launchpad.net/bugs/1811080

Extracted from commit cde70140 "mm/gup: Overload get_user_pages()
functions".  This is needed before picking commit 768ae309
"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>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent 958c704c
......@@ -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;
}
......
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