ceph: remove redundant io_iter_advance()
authorYan, Zheng <zyan@redhat.com>
Wed, 17 Sep 2014 06:44:51 +0000 (14:44 +0800)
committerIlya Dryomov <idryomov@redhat.com>
Tue, 14 Oct 2014 17:03:39 +0000 (21:03 +0400)
ceph_sync_read and generic_file_read_iter() have already advanced the
IO iterator.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/file.c

index e520317..d190650 100644 (file)
@@ -835,7 +835,6 @@ again:
                             ", reading more\n", iocb->ki_pos,
                             inode->i_size);
 
-                       iov_iter_advance(to, ret);
                        read += ret;
                        len -= ret;
                        checkeof = 0;