mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
lift sb_start_write() out of ->write()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
72ec35163f
commit
03d95eb2f2
8 changed files with 26 additions and 13 deletions
|
|
@ -1052,7 +1052,9 @@ static int write_pipe_buf(struct pipe_inode_info *pipe, struct pipe_buffer *buf,
|
|||
loff_t tmp = sd->pos;
|
||||
|
||||
data = buf->ops->map(pipe, buf, 0);
|
||||
file_start_write(sd->u.file);
|
||||
ret = __kernel_write(sd->u.file, data + buf->offset, sd->len, &tmp);
|
||||
file_end_write(sd->u.file);
|
||||
buf->ops->unmap(pipe, buf, data);
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue