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
nexedi
linux
Commits
8f7e885a
Commit
8f7e885a
authored
Mar 21, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blk_rq_map_user(): use import_single_range()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e272b89f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
block/blk-map.c
block/blk-map.c
+3
-3
No files found.
block/blk-map.c
View file @
8f7e885a
...
@@ -124,10 +124,10 @@ int blk_rq_map_user(struct request_queue *q, struct request *rq,
...
@@ -124,10 +124,10 @@ int blk_rq_map_user(struct request_queue *q, struct request *rq,
{
{
struct
iovec
iov
;
struct
iovec
iov
;
struct
iov_iter
i
;
struct
iov_iter
i
;
int
ret
=
import_single_range
(
rq_data_dir
(
rq
),
ubuf
,
len
,
&
iov
,
&
i
);
iov
.
iov_base
=
ubuf
;
if
(
unlikely
(
ret
<
0
))
iov
.
iov_len
=
len
;
return
ret
;
iov_iter_init
(
&
i
,
rq_data_dir
(
rq
),
&
iov
,
1
,
len
);
return
blk_rq_map_user_iov
(
q
,
rq
,
map_data
,
&
i
,
gfp_mask
);
return
blk_rq_map_user_iov
(
q
,
rq
,
map_data
,
&
i
,
gfp_mask
);
}
}
...
...
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