Skip to content

Commit c6358ba

Browse files
Qiujun Huangrostedt
authored andcommitted
ring-buffer: Drop unneeded check in ring_buffer_resize()
Remove the cpumask check, as we has done it at the beginning of the function. Also fix a typo. s/also the on the/also on the/ Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Qiujun Huang <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 6689bed commit c6358ba

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

kernel/trace/ring_buffer.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,10 +2059,6 @@ int ring_buffer_resize(struct trace_buffer *buffer, unsigned long size,
20592059

20602060
put_online_cpus();
20612061
} else {
2062-
/* Make sure this CPU has been initialized */
2063-
if (!cpumask_test_cpu(cpu_id, buffer->cpumask))
2064-
goto out;
2065-
20662062
cpu_buffer = buffer->buffers[cpu_id];
20672063

20682064
if (nr_pages == cpu_buffer->nr_pages)
@@ -2580,7 +2576,7 @@ rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer,
25802576
* have filled up the buffer with events
25812577
* from interrupts and such, and wrapped.
25822578
*
2583-
* Note, if the tail page is also the on the
2579+
* Note, if the tail page is also on the
25842580
* reader_page, we let it move out.
25852581
*/
25862582
if (unlikely((cpu_buffer->commit_page !=

0 commit comments

Comments
 (0)