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/20201224144634.3210-1-hqjagain@gmail.com Signed-off-by: Qiujun Huang <hqjagain@gmail.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
committed by
Steven Rostedt (VMware)
parent
6689bed36c
commit
c6358bacdc
@@ -2059,10 +2059,6 @@ int ring_buffer_resize(struct trace_buffer *buffer, unsigned long size,
|
|||||||
|
|
||||||
put_online_cpus();
|
put_online_cpus();
|
||||||
} else {
|
} else {
|
||||||
/* Make sure this CPU has been initialized */
|
|
||||||
if (!cpumask_test_cpu(cpu_id, buffer->cpumask))
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
cpu_buffer = buffer->buffers[cpu_id];
|
cpu_buffer = buffer->buffers[cpu_id];
|
||||||
|
|
||||||
if (nr_pages == cpu_buffer->nr_pages)
|
if (nr_pages == cpu_buffer->nr_pages)
|
||||||
@@ -2580,7 +2576,7 @@ rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer,
|
|||||||
* have filled up the buffer with events
|
* have filled up the buffer with events
|
||||||
* from interrupts and such, and wrapped.
|
* from interrupts and such, and wrapped.
|
||||||
*
|
*
|
||||||
* Note, if the tail page is also the on the
|
* Note, if the tail page is also on the
|
||||||
* reader_page, we let it move out.
|
* reader_page, we let it move out.
|
||||||
*/
|
*/
|
||||||
if (unlikely((cpu_buffer->commit_page !=
|
if (unlikely((cpu_buffer->commit_page !=
|
||||||
|
|||||||
Reference in New Issue
Block a user