diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-10-08 20:10:00 -0400 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2015-11-13 11:38:02 -0500 |
commit | 16742f2d7c1004bea5222a19428196b7125a41d1 (patch) | |
tree | 466e14eea1ea1d41108a044d9643d75052da9bbc /fs/orangefs/pvfs2-bufmap.c | |
parent | a0435ca18efe3e052393c2866a755f9ca1902268 (diff) | |
download | lwn-16742f2d7c1004bea5222a19428196b7125a41d1.tar.gz lwn-16742f2d7c1004bea5222a19428196b7125a41d1.zip |
orangefs: use get_user_pages_fast(), not get_user_pages()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/pvfs2-bufmap.c')
-rw-r--r-- | fs/orangefs/pvfs2-bufmap.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/fs/orangefs/pvfs2-bufmap.c b/fs/orangefs/pvfs2-bufmap.c index dacf42bee196..c7b0f3560734 100644 --- a/fs/orangefs/pvfs2-bufmap.c +++ b/fs/orangefs/pvfs2-bufmap.c @@ -171,16 +171,8 @@ pvfs2_bufmap_map(struct pvfs2_bufmap *bufmap, int offset = 0, ret, i; /* map the pages */ - down_write(¤t->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(¤t->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; |