Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186245
b: refs/heads/master
c: 5f1664f
h: refs/heads/master
i:
  186243: e000355
v: v3
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Mar 6, 2010
1 parent e651938 commit f148185
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0347af4ee3922220f6bfe74b87b526aa709a0365
refs/heads/master: 5f1664f92b2247111b7d37e454a050b76ac61b7f
5 changes: 3 additions & 2 deletions trunk/kernel/relay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,14 +1215,14 @@ static void relay_page_release(struct splice_pipe_desc *spd, unsigned int i)
/*
* subbuf_splice_actor - splice up to one subbuf's worth of data
*/
static int subbuf_splice_actor(struct file *in,
static ssize_t subbuf_splice_actor(struct file *in,
loff_t *ppos,
struct pipe_inode_info *pipe,
size_t len,
unsigned int flags,
int *nonpad_ret)
{
unsigned int pidx, poff, total_len, subbuf_pages, nr_pages, ret;
unsigned int pidx, poff, total_len, subbuf_pages, nr_pages;
struct rchan_buf *rbuf = in->private_data;
unsigned int subbuf_size = rbuf->chan->subbuf_size;
uint64_t pos = (uint64_t) *ppos;
Expand All @@ -1241,6 +1241,7 @@ static int subbuf_splice_actor(struct file *in,
.ops = &relay_pipe_buf_ops,
.spd_release = relay_page_release,
};
ssize_t ret;

if (rbuf->subbufs_produced == rbuf->subbufs_consumed)
return 0;
Expand Down

0 comments on commit f148185

Please sign in to comment.