Skip to content

Commit

Permalink
staging/lustre: kiocb->ki_left is removed
Browse files Browse the repository at this point in the history
We also missed ki_nbytes...

Cc: Kent Overstreet <[email protected]>
Cc: Andreas Dilger <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Peng Tao <[email protected]>
Signed-off-by: Benjamin LaHaise <[email protected]>
  • Loading branch information
Peng Tao authored and bcrl committed Aug 6, 2013
1 parent da90382 commit 0bdd5ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/lustre/lustre/llite/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0bdd5ca

Please sign in to comment.