Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143110
b: refs/heads/master
c: c7625a5
h: refs/heads/master
v: v3
  • Loading branch information
Lai Jiangshan authored and Ingo Molnar committed Apr 10, 2009
1 parent 0076d71 commit 5a4ec3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: ddd538f3e6a1a4bec2f6942f83a753263e6577b4
refs/heads/master: c7625a555f55d7ae49236cde551786c88f5a5ce1
8 changes: 1 addition & 7 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -3428,13 +3428,6 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
int size, i;
size_t ret;

/*
* We can't seek on a buffer input
*/
if (unlikely(*ppos))
return -ESPIPE;


for (i = 0; i < PIPE_BUFFERS && len; i++, len -= size) {
struct page *page;
int r;
Expand Down Expand Up @@ -3474,6 +3467,7 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
spd.partial[i].offset = 0;
spd.partial[i].private = (unsigned long)ref;
spd.nr_pages++;
*ppos += size;
}

spd.nr_pages = i;
Expand Down

0 comments on commit 5a4ec3c

Please sign in to comment.