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
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -2059,10 +2059,6 @@ int ring_buffer_resize(struct trace_buffer *buffer, unsigned long size, · 2058 unmodified lines | ||
| 2059 | 2059 | |
| 2060 | 2060 | put_online_cpus(); |
| 2061 | 2061 | } else { |
| 2062 | − /* Make sure this CPU has been initialized */ | |
| 2063 | − if (!cpumask_test_cpu(cpu_id, buffer->cpumask)) | |
| 2064 | − goto out; | |
| 2065 | − | |
| 2066 | 2062 | cpu_buffer = buffer->buffers[cpu_id]; |
| 2067 | 2063 | |
| 2068 | 2064 | if (nr_pages == cpu_buffer->nr_pages) |
| @@ -2580,7 +2576,7 @@ rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer, · 511 unmodified lines | ||
| 2580 | 2576 | * have filled up the buffer with events |
| 2581 | 2577 | * from interrupts and such, and wrapped. |
| 2582 | 2578 | * |
| 2583 | − * Note, if the tail page is also the on the | |
| 2579 | + * Note, if the tail page is also on the | |
| 2584 | 2580 | * reader_page, we let it move out. |
| 2585 | 2581 | */ |
| 2586 | 2582 | if (unlikely((cpu_buffer->commit_page != |