aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-04-13 03:12:24 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-04-21 13:57:32 -0400
commitc63ed807d1fca901d6b463deb3ceeced4969384e (patch)
tree340e3af2e042ef75069fb631684274215a37ac60
parent3b6d4dbf09d12fdef8c8388962ae9a2da6890a47 (diff)
orangefs: use iov_iter_revert()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/orangefs/file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c
index e6bbc8083d77..1cd37ebc4f25 100644
--- a/fs/orangefs/file.c
+++ b/fs/orangefs/file.c
@@ -114,7 +114,6 @@ static ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inod
114 struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(inode); 114 struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(inode);
115 struct orangefs_khandle *handle = &orangefs_inode->refn.khandle; 115 struct orangefs_khandle *handle = &orangefs_inode->refn.khandle;
116 struct orangefs_kernel_op_s *new_op = NULL; 116 struct orangefs_kernel_op_s *new_op = NULL;
117 struct iov_iter saved = *iter;
118 int buffer_index = -1; 117 int buffer_index = -1;
119 ssize_t ret; 118 ssize_t ret;
120 119
@@ -193,7 +192,7 @@ populate_shared_memory:
193 orangefs_bufmap_put(buffer_index); 192 orangefs_bufmap_put(buffer_index);
194 buffer_index = -1; 193 buffer_index = -1;
195 if (type == ORANGEFS_IO_WRITE) 194 if (type == ORANGEFS_IO_WRITE)
196 *iter = saved; 195 iov_iter_revert(iter, total_size);
197 gossip_debug(GOSSIP_FILE_DEBUG, 196 gossip_debug(GOSSIP_FILE_DEBUG,
198 "%s:going to repopulate_shared_memory.\n", 197 "%s:going to repopulate_shared_memory.\n",
199 __func__); 198 __func__);