idr: fix param name in idr_alloc_cyclic() doc
authorAriel Marcovitch <arielmarcovitch@gmail.com>
Sat, 26 Aug 2023 17:33:17 +0000 (20:33 +0300)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 5 Sep 2023 23:01:38 +0000 (19:01 -0400)
The relevant parameter is 'start' and not 'nextid'

Fixes: 460488c58ca8 ("idr: Remove idr_alloc_ext")
Signed-off-by: Ariel Marcovitch <arielmarcovitch@gmail.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
lib/idr.c

index 7ecdfdb..13f2758 100644 (file)
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -100,7 +100,7 @@ EXPORT_SYMBOL_GPL(idr_alloc);
  * @end: The maximum ID (exclusive).
  * @gfp: Memory allocation flags.
  *
- * Allocates an unused ID in the range specified by @nextid and @end.  If
+ * Allocates an unused ID in the range specified by @start and @end.  If
  * @end is <= 0, it is treated as one larger than %INT_MAX.  This allows
  * callers to use @start + N as @end as long as N is within integer range.
  * The search for an unused ID will start at the last ID allocated and will