Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146100
b: refs/heads/master
c: 8e7abf1
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed May 6, 2009
1 parent 44e7519 commit 242ca31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 35cf723e99c0e26ddf51f037dffaa4ff2c2c9106
refs/heads/master: 8e7abf1c62941ebb7a1416cbc62392c8a0902625
8 changes: 3 additions & 5 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1290,9 +1290,8 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer,
rb_event_set_padding(event);
}

if (tail <= BUF_PAGE_SIZE)
/* Set the write back to the previous setting */
local_set(&tail_page->write, tail);
/* Set the write back to the previous setting */
local_sub(length, &tail_page->write);

/*
* If this was a commit entry that failed,
Expand All @@ -1311,8 +1310,7 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer,

out_reset:
/* reset write */
if (tail <= BUF_PAGE_SIZE)
local_set(&tail_page->write, tail);
local_sub(length, &tail_page->write);

if (likely(lock_taken))
__raw_spin_unlock(&cpu_buffer->lock);
Expand Down

0 comments on commit 242ca31

Please sign in to comment.