Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304946
b: refs/heads/master
c: 308f7ee
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed May 16, 2012
1 parent b11dc02 commit 370f3f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 659f451ff21315ebfeeb46b9adccee8ce1b52c25
refs/heads/master: 308f7eeb7882c27c1d7aa783499cb22f3b199718
4 changes: 4 additions & 0 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,10 @@ static int rb_check_pages(struct ring_buffer_per_cpu *cpu_buffer)
struct list_head *head = cpu_buffer->pages;
struct buffer_page *bpage, *tmp;

/* Reset the head page if it exists */
if (cpu_buffer->head_page)
rb_set_head_page(cpu_buffer);

rb_head_page_deactivate(cpu_buffer);

if (RB_WARN_ON(cpu_buffer, head->next->prev != head))
Expand Down

0 comments on commit 370f3f1

Please sign in to comment.