mirror of https://gitee.com/openkylin/linux.git
ceph: remove redundant io_iter_advance()
ceph_sync_read and generic_file_read_iter() have already advanced the IO iterator. Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
parent
6cd3bcad0d
commit
3b70b388e3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue