Skip to content

Commit 2a15de8

Browse files
arielmarco-hzMatthew Wilcox (Oracle)
authored andcommitted
idr: fix param name in idr_alloc_cyclic() doc
The relevant parameter is 'start' and not 'nextid' Fixes: 460488c ("idr: Remove idr_alloc_ext") Signed-off-by: Ariel Marcovitch <arielmarcovitch@gmail.com> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
1 parent e7716c7 commit 2a15de8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/idr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ EXPORT_SYMBOL_GPL(idr_alloc);
100100
* @end: The maximum ID (exclusive).
101101
* @gfp: Memory allocation flags.
102102
*
103-
* Allocates an unused ID in the range specified by @nextid and @end. If
103+
* Allocates an unused ID in the range specified by @start and @end. If
104104
* @end is <= 0, it is treated as one larger than %INT_MAX. This allows
105105
* callers to use @start + N as @end as long as N is within integer range.
106106
* The search for an unused ID will start at the last ID allocated and will

0 commit comments

Comments
 (0)