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: fix comment typo with corresponding maple_status

In comment of function mas_start(), we list the return value of different
cases. According to the comment context, tell the maple_status here is
more consistent with others.

Let's correct it with ma_active in the case it's a tree.

Link: https://lkml.kernel.org/r/20240812150925.31551-2-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Wei Yang and committed by
Andrew Morton
c64d6615 7a0529d0

+1 -1
+1 -1
lib/maple_tree.c
··· 1347 1347 * - If mas->node is an error or not mas_start, return NULL. 1348 1348 * - If it's an empty tree: NULL & mas->status == ma_none 1349 1349 * - If it's a single entry: The entry & mas->status == ma_root 1350 - * - If it's a tree: NULL & mas->status == safe root node. 1350 + * - If it's a tree: NULL & mas->status == ma_active 1351 1351 */ 1352 1352 static inline struct maple_enode *mas_start(struct ma_state *mas) 1353 1353 {