aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2014-09-17 02:44:51 -0400
committerIlya Dryomov <idryomov@redhat.com>2014-10-14 13:03:39 -0400
commit3b70b388e3378d0b7272d649bb91451a6de4e924 (patch)
treeabf3d13cf465a32a50aa6842ce6fbe303b0d5619 /fs/ceph
parent6cd3bcad0d269f96667ea704d4f6459a5c6ccbab (diff)
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/file.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index e5203174634d..d190650811c4 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -835,7 +835,6 @@ again:
835 ", reading more\n", iocb->ki_pos, 835 ", reading more\n", iocb->ki_pos,
836 inode->i_size); 836 inode->i_size);
837 837
838 iov_iter_advance(to, ret);
839 read += ret; 838 read += ret;
840 len -= ret; 839 len -= ret;
841 checkeof = 0; 840 checkeof = 0;