Skip to content

Commit

Permalink
ring-buffer: Fix typo in comment about header page pointer
Browse files Browse the repository at this point in the history
Fix typo in comment about header page pointer in function
rb_get_reader_page.

Link: https://lore.kernel.org/20250118012352.3430519-1-zhouzhouyi@gmail.com
Signed-off-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
  • Loading branch information
Zhouyi Zhou authored and Steven Rostedt (Google) committed Mar 6, 2025
1 parent 937fbf1 commit 3ca4d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -5318,7 +5318,7 @@ rb_get_reader_page(struct ring_buffer_per_cpu *cpu_buffer)
* moving it. The page before the header page has the
* flag bit '1' set if it is pointing to the page we want.
* but if the writer is in the process of moving it
* than it will be '2' or already moved '0'.
* then it will be '2' or already moved '0'.
*/

ret = rb_head_page_replace(reader, cpu_buffer->reader_page);
Expand Down

0 comments on commit 3ca4d7a

Please sign in to comment.