Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146067
b: refs/heads/master
c: 93459c6
h: refs/heads/master
i:
  146065: 6d6b53b
  146063: 6558792
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Apr 29, 2009
1 parent 212f3d7 commit 869ec0c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 5beae6efd1004b44c3e257dc96087978e4c763c1
refs/heads/master: 93459c6cb9816c52200993d29dd18cea1daee335
8 changes: 6 additions & 2 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -3508,7 +3508,7 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
.spd_release = buffer_spd_release,
};
struct buffer_ref *ref;
int size, i;
int entries, size, i;
size_t ret;

if (*ppos & (PAGE_SIZE - 1)) {
Expand All @@ -3523,7 +3523,9 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
len &= PAGE_MASK;
}

for (i = 0; i < PIPE_BUFFERS && len; i++, len -= PAGE_SIZE) {
entries = ring_buffer_entries_cpu(info->tr->buffer, info->cpu);

for (i = 0; i < PIPE_BUFFERS && len && entries; i++, len -= PAGE_SIZE) {
struct page *page;
int r;

Expand Down Expand Up @@ -3564,6 +3566,8 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
spd.partial[i].private = (unsigned long)ref;
spd.nr_pages++;
*ppos += PAGE_SIZE;

entries = ring_buffer_entries_cpu(info->tr->buffer, info->cpu);
}

spd.nr_pages = i;
Expand Down

0 comments on commit 869ec0c

Please sign in to comment.