diff mbox series

maple_tree: fix comment describing mas_node_count_gfp()

Message ID 20240109223119.162357-1-sidhartha.kumar@oracle.com (mailing list archive)
State New
Headers show
Series maple_tree: fix comment describing mas_node_count_gfp() | expand

Commit Message

Sidhartha Kumar Jan. 9, 2024, 10:31 p.m. UTC
The function description comment for mas_node_count_gfp() mistakingly
refers to the function as mas_node_count(). Change it to refer to the
correct function.

Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
---
 lib/maple_tree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Liam R. Howlett Jan. 10, 2024, 2:24 a.m. UTC | #1
* Sidhartha Kumar <sidhartha.kumar@oracle.com> [240109 17:31]:
> The function description comment for mas_node_count_gfp() mistakingly
> refers to the function as mas_node_count(). Change it to refer to the
> correct function.

Looks good, thanks!

> 
> Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>

Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>

> ---
>  lib/maple_tree.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/maple_tree.c b/lib/maple_tree.c
> index 6f241bb387992..7b161802860bd 100644
> --- a/lib/maple_tree.c
> +++ b/lib/maple_tree.c
> @@ -1307,8 +1307,8 @@ static inline void mas_free(struct ma_state *mas, struct maple_enode *used)
>  }
>  
>  /*
> - * mas_node_count() - Check if enough nodes are allocated and request more if
> - * there is not enough nodes.
> + * mas_node_count_gfp() - Check if enough nodes are allocated and request more
> + * if there is not enough nodes.
>   * @mas: The maple state
>   * @count: The number of nodes needed
>   * @gfp: the gfp flags
> -- 
> 2.42.0
>
diff mbox series

Patch

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 6f241bb387992..7b161802860bd 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -1307,8 +1307,8 @@  static inline void mas_free(struct ma_state *mas, struct maple_enode *used)
 }
 
 /*
- * mas_node_count() - Check if enough nodes are allocated and request more if
- * there is not enough nodes.
+ * mas_node_count_gfp() - Check if enough nodes are allocated and request more
+ * if there is not enough nodes.
  * @mas: The maple state
  * @count: The number of nodes needed
  * @gfp: the gfp flags