summaryrefslogtreecommitdiffstats
path: root/lib/maple_tree.c
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2024-08-12 17:09:25 +0200
committerAndrew Morton <akpm@linux-foundation.org>2024-09-02 05:26:11 +0200
commitc64d66153b3413095c57805e66b8b6e2ff8633c0 (patch)
treec8419fe16fb873748ceaf235a33a37e470c3660c /lib/maple_tree.c
parentmaple_tree: fix comment typo of ma_root (diff)
downloadlinux-c64d66153b3413095c57805e66b8b6e2ff8633c0.tar.xz
linux-c64d66153b3413095c57805e66b8b6e2ff8633c0.zip
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>
Diffstat (limited to 'lib/maple_tree.c')
-rw-r--r--lib/maple_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index b3a3d5a00577..884e2d130876 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -1347,7 +1347,7 @@ static void mas_node_count(struct ma_state *mas, int count)
* - If mas->node is an error or not mas_start, return NULL.
* - If it's an empty tree: NULL & mas->status == ma_none
* - If it's a single entry: The entry & mas->status == ma_root
- * - If it's a tree: NULL & mas->status == safe root node.
+ * - If it's a tree: NULL & mas->status == ma_active
*/
static inline struct maple_enode *mas_start(struct ma_state *mas)
{