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 e5203174634d105eb7eb95269a0e7aba38834d1a..d190650811c4b19221722c4aecae7f6f9e6f490f 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;