mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
lift file_*_write out of do_splice_direct()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
500368f7fb
commit
50cd2c5776
2 changed files with 2 additions and 2 deletions
|
|
@ -1303,11 +1303,9 @@ long do_splice_direct(struct file *in, loff_t *ppos, struct file *out,
|
|||
};
|
||||
long ret;
|
||||
|
||||
file_start_write(out);
|
||||
ret = splice_direct_to_actor(in, &sd, direct_splice_actor);
|
||||
if (ret > 0)
|
||||
*ppos = sd.pos;
|
||||
file_end_write(out);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue