mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
vfs: use helpers for calling f_op->{read,write}_iter()
Signed-off-by: Miklos Szeredi <[email protected]>
This commit is contained in:
parent
0f78d06ac1
commit
bb7462b6fd
5 changed files with 23 additions and 11 deletions
|
|
@ -306,7 +306,7 @@ ssize_t generic_file_splice_read(struct file *in, loff_t *ppos,
|
|||
idx = to.idx;
|
||||
init_sync_kiocb(&kiocb, in);
|
||||
kiocb.ki_pos = *ppos;
|
||||
ret = in->f_op->read_iter(&kiocb, &to);
|
||||
ret = call_read_iter(in, &kiocb, &to);
|
||||
if (ret > 0) {
|
||||
*ppos = kiocb.ki_pos;
|
||||
file_accessed(in);
|
||||
|
|
|
|||
Loading…
Reference in a new issue