Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
77478715
Commit
77478715
authored
Sep 22, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: use get_user_pages_fast()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
8dcf932d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/ceph/pagevec.c
net/ceph/pagevec.c
+2
-2
No files found.
net/ceph/pagevec.c
View file @
77478715
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment