diff options
Diffstat (limited to 'kernel/relay.c')
| -rw-r--r-- | kernel/relay.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/relay.c b/kernel/relay.c index 5001c9887db1..5a56d3c8dc03 100644 --- a/kernel/relay.c +++ b/kernel/relay.c | |||
| @@ -227,7 +227,7 @@ static void relay_destroy_buf(struct rchan_buf *buf) | |||
| 227 | * relay_remove_buf - remove a channel buffer | 227 | * relay_remove_buf - remove a channel buffer |
| 228 | * @kref: target kernel reference that contains the relay buffer | 228 | * @kref: target kernel reference that contains the relay buffer |
| 229 | * | 229 | * |
| 230 | * Removes the file from the fileystem, which also frees the | 230 | * Removes the file from the filesystem, which also frees the |
| 231 | * rchan_buf_struct and the channel buffer. Should only be called from | 231 | * rchan_buf_struct and the channel buffer. Should only be called from |
| 232 | * kref_put(). | 232 | * kref_put(). |
| 233 | */ | 233 | */ |
| @@ -1195,8 +1195,6 @@ static void relay_pipe_buf_release(struct pipe_inode_info *pipe, | |||
| 1195 | 1195 | ||
| 1196 | static const struct pipe_buf_operations relay_pipe_buf_ops = { | 1196 | static const struct pipe_buf_operations relay_pipe_buf_ops = { |
| 1197 | .can_merge = 0, | 1197 | .can_merge = 0, |
| 1198 | .map = generic_pipe_buf_map, | ||
| 1199 | .unmap = generic_pipe_buf_unmap, | ||
| 1200 | .confirm = generic_pipe_buf_confirm, | 1198 | .confirm = generic_pipe_buf_confirm, |
| 1201 | .release = relay_pipe_buf_release, | 1199 | .release = relay_pipe_buf_release, |
| 1202 | .steal = generic_pipe_buf_steal, | 1200 | .steal = generic_pipe_buf_steal, |
| @@ -1253,7 +1251,7 @@ static ssize_t subbuf_splice_actor(struct file *in, | |||
| 1253 | subbuf_pages = rbuf->chan->alloc_size >> PAGE_SHIFT; | 1251 | subbuf_pages = rbuf->chan->alloc_size >> PAGE_SHIFT; |
| 1254 | pidx = (read_start / PAGE_SIZE) % subbuf_pages; | 1252 | pidx = (read_start / PAGE_SIZE) % subbuf_pages; |
| 1255 | poff = read_start & ~PAGE_MASK; | 1253 | poff = read_start & ~PAGE_MASK; |
| 1256 | nr_pages = min_t(unsigned int, subbuf_pages, pipe->buffers); | 1254 | nr_pages = min_t(unsigned int, subbuf_pages, spd.nr_pages_max); |
| 1257 | 1255 | ||
| 1258 | for (total_len = 0; spd.nr_pages < nr_pages; spd.nr_pages++) { | 1256 | for (total_len = 0; spd.nr_pages < nr_pages; spd.nr_pages++) { |
| 1259 | unsigned int this_len, this_end, private; | 1257 | unsigned int this_len, this_end, private; |
