Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

maple_tree: don't pass end to mas_wr_append()

Figure out the end internally. This is necessary for future cleanups.

Link: https://lkml.kernel.org/r/20260130205935.2559335-30-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Alice Ryhl <aliceryhl@google.com>
Cc: Andrew Ballance <andrewjballance@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Christian Kujau <lists@nerdbynature.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: SeongJae Park <sj@kernel.org>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Liam R. Howlett and committed by
Andrew Morton
b82f4c81 2969241f

+3 -4
+3 -4
lib/maple_tree.c
··· 3309 3309 /* 3310 3310 * mas_wr_append: Attempt to append 3311 3311 * @wr_mas: the maple write state 3312 - * @new_end: The end of the node after the modification 3313 3312 * 3314 3313 * This is currently unsafe in rcu mode since the end of the node may be cached 3315 3314 * by readers while the node contents may be updated which could result in 3316 3315 * inaccurate information. 3317 3316 */ 3318 - static inline void mas_wr_append(struct ma_wr_state *wr_mas, 3319 - unsigned char new_end) 3317 + static inline void mas_wr_append(struct ma_wr_state *wr_mas) 3320 3318 { 3321 3319 struct ma_state *mas = wr_mas->mas; 3322 3320 void __rcu **slots; 3323 3321 unsigned char end = mas->end; 3322 + unsigned char new_end = mas_wr_new_end(wr_mas); 3324 3323 3325 3324 if (new_end < mt_pivots[wr_mas->type]) { 3326 3325 wr_mas->pivots[new_end] = wr_mas->pivots[end]; ··· 3512 3513 mas_update_gap(mas); 3513 3514 break; 3514 3515 case wr_append: 3515 - mas_wr_append(wr_mas, new_end); 3516 + mas_wr_append(wr_mas); 3516 3517 break; 3517 3518 case wr_slot_store: 3518 3519 mas_wr_slot_store(wr_mas);