projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dcf932
)
ceph: use get_user_pages_fast()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 22 Sep 2017 22:23:17 +0000
(18:23 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 23 Sep 2017 03:14:41 +0000
(23:14 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/ceph/pagevec.c
patch
|
blob
|
history
diff --git
a/net/ceph/pagevec.c
b/net/ceph/pagevec.c
index
1a7c9a7
..
4098b17
100644
(file)
--- a/
net/ceph/pagevec.c
+++ b/
net/ceph/pagevec.c
@@
-24,9
+24,9
@@
struct page **ceph_get_direct_page_vector(const void __user *data,
return ERR_PTR(-ENOMEM);
while (got < num_pages) {
- rc = get_user_pages_
unlocked
(
+ rc = get_user_pages_
fast
(
(unsigned long)data + ((unsigned long)got * PAGE_SIZE),
- num_pages - got,
pages + got, write_page ? FOLL_WRITE : 0
);
+ num_pages - got,
write_page, pages + got
);
if (rc < 0)
break;
BUG_ON(rc == 0);