Commit 3cb3091
committed
ring-buffer: Use subbuf_order for buffer page masking
The comparisons to PAGE_SIZE were all converted to use the
buffer->subbuf_order, but the use of PAGE_MASK was missed.
Convert all the PAGE_MASK usages over to:
(PAGE_SIZE << cpu_buffer->buffer->subbuf_order) - 1
Link: https://lore.kernel.org/linux-trace-kernel/20231219173800.66eefb7a@gandalf.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Tzvetomir Stoyanov <tz.stoyanov@gmail.com>
Cc: Vincent Donnefort <vdonnefort@google.com>
Cc: Kent Overstreet <kent.overstreet@gmail.com>
Fixes: 139f840 ("ring-buffer: Page size per ring buffer")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent 2f84b39 commit 3cb3091
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2269 | 2269 | | |
2270 | 2270 | | |
2271 | 2271 | | |
2272 | | - | |
| 2272 | + | |
2273 | 2273 | | |
2274 | 2274 | | |
2275 | 2275 | | |
2276 | | - | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
2277 | 2279 | | |
2278 | 2280 | | |
2279 | 2281 | | |
| |||
2646 | 2648 | | |
2647 | 2649 | | |
2648 | 2650 | | |
2649 | | - | |
| 2651 | + | |
| 2652 | + | |
2650 | 2653 | | |
2651 | 2654 | | |
2652 | 2655 | | |
2653 | 2656 | | |
2654 | 2657 | | |
2655 | 2658 | | |
2656 | 2659 | | |
2657 | | - | |
| 2660 | + | |
2658 | 2661 | | |
2659 | 2662 | | |
2660 | 2663 | | |
| |||
2728 | 2731 | | |
2729 | 2732 | | |
2730 | 2733 | | |
2731 | | - | |
| 2734 | + | |
2732 | 2735 | | |
2733 | 2736 | | |
2734 | 2737 | | |
| |||
2812 | 2815 | | |
2813 | 2816 | | |
2814 | 2817 | | |
2815 | | - | |
| 2818 | + | |
2816 | 2819 | | |
2817 | 2820 | | |
2818 | | - | |
| 2821 | + | |
2819 | 2822 | | |
2820 | 2823 | | |
2821 | 2824 | | |
| |||
3726 | 3729 | | |
3727 | 3730 | | |
3728 | 3731 | | |
3729 | | - | |
| 3732 | + | |
3730 | 3733 | | |
3731 | 3734 | | |
3732 | 3735 | | |
| |||
0 commit comments