diff options
author | Peng Tao <tao.peng@emc.com> | 2013-08-06 20:31:01 +0800 |
---|---|---|
committer | Benjamin LaHaise <bcrl@kvack.org> | 2013-08-06 11:02:11 -0400 |
commit | 0bdd5ca553ebc15060dd72684710e0a0af4481b4 (patch) | |
tree | 4055f10abc588697d10b41d9728a82b362ce57b7 /drivers | |
parent | da90382c2ec367aac88ff6aa76afb659ee0e4235 (diff) | |
download | op-kernel-dev-0bdd5ca553ebc15060dd72684710e0a0af4481b4.zip op-kernel-dev-0bdd5ca553ebc15060dd72684710e0a0af4481b4.tar.gz |
staging/lustre: kiocb->ki_left is removed
We also missed ki_nbytes...
Cc: Kent Overstreet <koverstreet@google.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/lustre/lustre/llite/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c index ed1e3f7..444710b 100644 --- a/drivers/staging/lustre/lustre/llite/file.c +++ b/drivers/staging/lustre/lustre/llite/file.c @@ -1027,7 +1027,7 @@ static ssize_t ll_file_read(struct file *file, char *buf, size_t count, local_iov->iov_len = count; init_sync_kiocb(kiocb, file); kiocb->ki_pos = *ppos; - kiocb->ki_left = count; + kiocb->ki_nbytes = count; result = ll_file_aio_read(kiocb, local_iov, 1, kiocb->ki_pos); *ppos = kiocb->ki_pos; @@ -1088,7 +1088,7 @@ static ssize_t ll_file_write(struct file *file, const char *buf, size_t count, local_iov->iov_len = count; init_sync_kiocb(kiocb, file); kiocb->ki_pos = *ppos; - kiocb->ki_left = count; + kiocb->ki_nbytes = count; result = ll_file_aio_write(kiocb, local_iov, 1, kiocb->ki_pos); *ppos = kiocb->ki_pos; |