mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] maple_tree: fix comment typo of ma_root
@ 2024-08-12 15:09 Wei Yang
  2024-08-12 15:09 ` [PATCH 2/2] maple_tree: fix comment typo with corresponding maple_status Wei Yang
  2024-08-14  1:31 ` [PATCH 1/2] maple_tree: fix comment typo of ma_root Liam R. Howlett
  0 siblings, 2 replies; 4+ messages in thread
From: Wei Yang @ 2024-08-12 15:09 UTC (permalink / raw)
  To: akpm, Liam.Howlett; +Cc: linux-kernel, maple-tree, Wei Yang

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.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
---
 lib/maple_tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 3d2e207d9a5f..14ff54078f9e 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)
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-14  1:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-12 15:09 [PATCH 1/2] maple_tree: fix comment typo of ma_root Wei Yang
2024-08-12 15:09 ` [PATCH 2/2] maple_tree: fix comment typo with corresponding maple_status Wei Yang
2024-08-14  1:37   ` Liam R. Howlett
2024-08-14  1:31 ` [PATCH 1/2] maple_tree: fix comment typo of ma_root Liam R. Howlett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®