linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] maple_tree: Correct comment for mas_start()
@ 2025-02-09 18:10 I Hsin Cheng
  2025-02-10 14:35 ` Liam R. Howlett
  0 siblings, 1 reply; 2+ messages in thread
From: I Hsin Cheng @ 2025-02-09 18:10 UTC (permalink / raw)
  To: Liam.Howlett
  Cc: akpm, maple-tree, linux-mm, linux-kernel, jserv, skhan, I Hsin Cheng

There's no mas->status of "mas_start", what the function is checking is
whether mas->status equals to "ma_start". Correct the comment for the
function.

Signed-off-by: I Hsin Cheng <richard120310@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 f7153ade1be5..42c65974a56c 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -1353,7 +1353,7 @@ static void mas_node_count(struct ma_state *mas, int count)
  * mas_start() - Sets up maple state for operations.
  * @mas: The maple state.
  *
- * If mas->status == mas_start, then set the min, max and depth to
+ * If mas->status == ma_start, then set the min, max and depth to
  * defaults.
  *
  * Return:
-- 
2.43.0



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

* Re: [PATCH] maple_tree: Correct comment for mas_start()
  2025-02-09 18:10 [PATCH] maple_tree: Correct comment for mas_start() I Hsin Cheng
@ 2025-02-10 14:35 ` Liam R. Howlett
  0 siblings, 0 replies; 2+ messages in thread
From: Liam R. Howlett @ 2025-02-10 14:35 UTC (permalink / raw)
  To: I Hsin Cheng; +Cc: akpm, maple-tree, linux-mm, linux-kernel, jserv, skhan

* I Hsin Cheng <richard120310@gmail.com> [250209 13:10]:
> There's no mas->status of "mas_start", what the function is checking is
> whether mas->status equals to "ma_start". Correct the comment for the
> function.
> 
> Signed-off-by: I Hsin Cheng <richard120310@gmail.com>

Reviewed-by: Liam R. Howlett <howlett@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 f7153ade1be5..42c65974a56c 100644
> --- a/lib/maple_tree.c
> +++ b/lib/maple_tree.c
> @@ -1353,7 +1353,7 @@ static void mas_node_count(struct ma_state *mas, int count)
>   * mas_start() - Sets up maple state for operations.
>   * @mas: The maple state.
>   *
> - * If mas->status == mas_start, then set the min, max and depth to
> + * If mas->status == ma_start, then set the min, max and depth to
>   * defaults.
>   *
>   * Return:
> -- 
> 2.43.0
> 


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

end of thread, other threads:[~2025-02-10 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-09 18:10 [PATCH] maple_tree: Correct comment for mas_start() I Hsin Cheng
2025-02-10 14:35 ` 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