orangefs: use get_user_pages_fast(), not get_user_pages()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 9 Oct 2015 00:10:00 +0000 (20:10 -0400)
committerMike Marshall <hubcap@omnibond.com>
Fri, 13 Nov 2015 16:38:02 +0000 (11:38 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/pvfs2-bufmap.c

index dacf42bee1965e9c01b742ccf7bd1b51a5656d04..c7b0f3560734874c35df5b9c5b216187ea1ee857 100644 (file)
@@ -171,16 +171,8 @@ pvfs2_bufmap_map(struct pvfs2_bufmap *bufmap,
        int offset = 0, ret, i;
 
        /* map the pages */
-       down_write(&current->mm->mmap_sem);
-       ret = get_user_pages(current,
-                            current->mm,
-                            (unsigned long)user_desc->ptr,
-                            bufmap->page_count,
-                            1,
-                            0,
-                            bufmap->page_array,
-                            NULL);
-       up_write(&current->mm->mmap_sem);
+       ret = get_user_pages_fast((unsigned long)user_desc->ptr,
+                            bufmap->page_count, 1, bufmap->page_array);
 
        if (ret < 0)
                return ret;