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 of ma_root

In comment of mas_start(), we lists the return value for different cases.
In case of a single entry, we set mas->status to ma_root, while the
comment uses mas_root, which is not a maple_status.

Fix the typo according to the code.

Link: https://lkml.kernel.org/r/20240812150925.31551-1-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
7a0529d0 617f8e4d

+1 -1
+1 -1
lib/maple_tree.c
··· 1346 1346 * Return: 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 - * - If it's a single entry: The entry & mas->status == mas_root 1349 + * - If it's a single entry: The entry & mas->status == ma_root 1350 1350 * - If it's a tree: NULL & mas->status == safe root node. 1351 1351 */ 1352 1352 static inline struct maple_enode *mas_start(struct ma_state *mas)