projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f30bd68
)
lustre: Convert ll_get_user_pages() to use get_user_pages_fast()
author
Jan Kara
<jack@suse.cz>
Wed, 2 Oct 2013 14:27:51 +0000
(16:27 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 6 Oct 2013 00:52:58 +0000
(17:52 -0700)
CC: Peng Tao <tao.peng@emc.com>
Acked-by: Andreas Dilger <andreas.dilger@intel.com>
CC: hpdd-discuss@lists.01.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/rw26.c
patch
|
blob
|
history
diff --git
a/drivers/staging/lustre/lustre/llite/rw26.c
b/drivers/staging/lustre/lustre/llite/rw26.c
index
96c29ad
..
7e3e096
100644
(file)
--- a/
drivers/staging/lustre/lustre/llite/rw26.c
+++ b/
drivers/staging/lustre/lustre/llite/rw26.c
@@
-202,11
+202,8
@@
static inline int ll_get_user_pages(int rw, unsigned long user_addr,
OBD_ALLOC_LARGE(*pages, *max_pages * sizeof(**pages));
if (*pages) {
- down_read(¤t->mm->mmap_sem);
- result = get_user_pages(current, current->mm, user_addr,
- *max_pages, (rw == READ), 0, *pages,
- NULL);
- up_read(¤t->mm->mmap_sem);
+ result = get_user_pages_fast(user_addr, *max_pages,
+ (rw == READ), *pages);
if (unlikely(result <= 0))
OBD_FREE_LARGE(*pages, *max_pages * sizeof(**pages));
}