diff options
author | Christoph Hellwig <hch@lst.de> | 2015-02-11 19:56:46 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-03-12 23:50:23 -0400 |
commit | 66ee59af630fd8d5f4f56fb28162857e629aa0ab (patch) | |
tree | d1c4293f986fcb20824c90a2ab5f3f4e62543f8a /kernel | |
parent | 96b62a57193494010eed66ca0739c93eb4653162 (diff) | |
download | linux-66ee59af630fd8d5f4f56fb28162857e629aa0ab.tar.bz2 |
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 'kernel')
-rw-r--r-- | kernel/printk/printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index c06df7de0963..60b2aa2a2da9 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -521,7 +521,7 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from) int i; int level = default_message_loglevel; int facility = 1; /* LOG_USER */ - size_t len = iocb->ki_nbytes; + size_t len = iov_iter_count(from); ssize_t ret = len; if (len > LOG_LINE_MAX) |