summaryrefslogtreecommitdiff
path: root/lib/idr.c
diff options
context:
space:
mode:
authorAriel Marcovitch <arielmarcovitch@gmail.com>2023-08-26 20:33:17 +0300
committerMatthew Wilcox (Oracle) <willy@infradead.org>2023-09-05 19:01:38 -0400
commit2a15de80dd0f7e04a823291aa9eb49c5294f56af (patch)
tree0a816de430122c57483ff22166ae4e7765b80a54 /lib/idr.c
parente7716c74e3882405f9eca16faa6cb1bf19995399 (diff)
downloadlwn-2a15de80dd0f7e04a823291aa9eb49c5294f56af.tar.gz
lwn-2a15de80dd0f7e04a823291aa9eb49c5294f56af.zip
idr: fix param name in idr_alloc_cyclic() doc
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>
Diffstat (limited to 'lib/idr.c')
-rw-r--r--lib/idr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/idr.c b/lib/idr.c
index 7ecdfdb5309e..13f2758c2377 100644
--- 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