diff options
Diffstat (limited to 'fs/splice.c')
-rw-r--r-- | fs/splice.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/splice.c b/fs/splice.c index 29e394e49ddd..e78a749064db 100644 --- a/fs/splice.c +++ b/fs/splice.c | |||
@@ -1052,7 +1052,9 @@ static int write_pipe_buf(struct pipe_inode_info *pipe, struct pipe_buffer *buf, | |||
1052 | loff_t tmp = sd->pos; | 1052 | loff_t tmp = sd->pos; |
1053 | 1053 | ||
1054 | data = buf->ops->map(pipe, buf, 0); | 1054 | data = buf->ops->map(pipe, buf, 0); |
1055 | file_start_write(sd->u.file); | ||
1055 | ret = __kernel_write(sd->u.file, data + buf->offset, sd->len, &tmp); | 1056 | ret = __kernel_write(sd->u.file, data + buf->offset, sd->len, &tmp); |
1057 | file_end_write(sd->u.file); | ||
1056 | buf->ops->unmap(pipe, buf, data); | 1058 | buf->ops->unmap(pipe, buf, data); |
1057 | 1059 | ||
1058 | return ret; | 1060 | return ret; |