提交 3b70b388 编写于 作者: Y Yan, Zheng 提交者: Ilya Dryomov

ceph: remove redundant io_iter_advance()

ceph_sync_read and generic_file_read_iter() have already advanced the
IO iterator.
Signed-off-by: NYan, Zheng <zyan@redhat.com>
上级 6cd3bcad
......@@ -835,7 +835,6 @@ static ssize_t ceph_read_iter(struct kiocb *iocb, struct iov_iter *to)
", reading more\n", iocb->ki_pos,
inode->i_size);
iov_iter_advance(to, ret);
read += ret;
len -= ret;
checkeof = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册