]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: correct comment for mas_start()
authorI Hsin Cheng <richard120310@gmail.com>
Sun, 9 Feb 2025 18:10:23 +0000 (02:10 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Feb 2025 00:59:55 +0000 (16:59 -0800)
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.

Link: https://lkml.kernel.org/r/20250209181023.228856-1-richard120310@gmail.com
Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
Reviewed-by: Liam R. Howlett <howlett@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c

index f7153ade1be5f16423f0ca073846a7f3dfa60523..42c65974a56c514fcce2be2d335302f69f39f716 100644 (file)
@@ -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: