diff options
author | Christoph Hellwig <hch@lst.de> | 2015-02-11 13:56:46 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-03-12 23:50:23 -0400 |
commit | 66ee59af630fd8d5f4f56fb28162857e629aa0ab (patch) | |
tree | d1c4293f986fcb20824c90a2ab5f3f4e62543f8a /fs/ceph | |
parent | 96b62a57193494010eed66ca0739c93eb4653162 (diff) |
fs: remove ki_nbytes
There is no need to pass the total request length in the kiocb, as
we already get passed in through the iov_iter argument.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 905986dd4c3c..081c4e3f9e49 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -807,7 +807,7 @@ static ssize_t ceph_read_iter(struct kiocb *iocb, struct iov_iter *to) | |||
807 | { | 807 | { |
808 | struct file *filp = iocb->ki_filp; | 808 | struct file *filp = iocb->ki_filp; |
809 | struct ceph_file_info *fi = filp->private_data; | 809 | struct ceph_file_info *fi = filp->private_data; |
810 | size_t len = iocb->ki_nbytes; | 810 | size_t len = iov_iter_count(to); |
811 | struct inode *inode = file_inode(filp); | 811 | struct inode *inode = file_inode(filp); |
812 | struct ceph_inode_info *ci = ceph_inode(inode); | 812 | struct ceph_inode_info *ci = ceph_inode(inode); |
813 | struct page *pinned_page = NULL; | 813 | struct page *pinned_page = NULL; |