]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - mm/nommu.c
mm: replace get_user_pages_unlocked() write/force parameters with gup_flags
[mirror_ubuntu-artful-kernel.git] / mm / nommu.c
index 925dcc1fa2f3e3fa1ed0592eb806f250bbc5cb99..7e27add39f7ef764f5d921f8e50fb3b14513ac27 100644 (file)
@@ -197,17 +197,10 @@ long __get_user_pages_unlocked(struct task_struct *tsk, struct mm_struct *mm,
 EXPORT_SYMBOL(__get_user_pages_unlocked);
 
 long get_user_pages_unlocked(unsigned long start, unsigned long nr_pages,
-                            int write, int force, struct page **pages)
+                            struct page **pages, unsigned int gup_flags)
 {
-       unsigned int flags = 0;
-
-       if (write)
-               flags |= FOLL_WRITE;
-       if (force)
-               flags |= FOLL_FORCE;
-
        return __get_user_pages_unlocked(current, current->mm, start, nr_pages,
-                                        pages, flags);
+                                        pages, gup_flags);
 }
 EXPORT_SYMBOL(get_user_pages_unlocked);