summaryrefslogtreecommitdiff
path: root/lib/maple_tree.c
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2024-08-12 15:09:24 +0000
committerAndrew Morton <akpm@linux-foundation.org>2024-09-01 20:26:11 -0700
commit7a0529d0c2aa552498cc9b5c116f6e2ab8c2ac43 (patch)
tree39c1c287cfa1c90bf82768d8b4d7a7ee7dfff5de /lib/maple_tree.c
parent617f8e4d76b81361884db852005f519012ddd244 (diff)
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>
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 14d7864b8d53..b3a3d5a00577 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -1346,7 +1346,7 @@ static void mas_node_count(struct ma_state *mas, int count)
* Return:
* - 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 == mas_root
+ * - If it's a single entry: The entry & mas->status == ma_root
* - If it's a tree: NULL & mas->status == safe root node.
*/
static inline struct maple_enode *mas_start(struct ma_state *mas)