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
c63ed807
Commit
c63ed807
authored
Apr 13, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
orangefs: use iov_iter_revert()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
3b6d4dbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
fs/orangefs/file.c
fs/orangefs/file.c
+1
-2
No files found.
fs/orangefs/file.c
View file @
c63ed807
...
...
@@ -114,7 +114,6 @@ static ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inod
struct
orangefs_inode_s
*
orangefs_inode
=
ORANGEFS_I
(
inode
);
struct
orangefs_khandle
*
handle
=
&
orangefs_inode
->
refn
.
khandle
;
struct
orangefs_kernel_op_s
*
new_op
=
NULL
;
struct
iov_iter
saved
=
*
iter
;
int
buffer_index
=
-
1
;
ssize_t
ret
;
...
...
@@ -193,7 +192,7 @@ static ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inod
orangefs_bufmap_put
(
buffer_index
);
buffer_index
=
-
1
;
if
(
type
==
ORANGEFS_IO_WRITE
)
*
iter
=
saved
;
iov_iter_revert
(
iter
,
total_size
)
;
gossip_debug
(
GOSSIP_FILE_DEBUG
,
"%s:going to repopulate_shared_memory.
\n
"
,
__func__
);
...
...
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