Skip to content

Commit

Permalink
idr: fix param name in idr_alloc_cyclic() doc
Browse files Browse the repository at this point in the history
[ Upstream commit 2a15de8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
arielmarco-hz authored and gregkh committed Sep 19, 2023
1 parent 147d8da commit 175f290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/idr.c
Expand Up @@ -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
Expand Down

0 comments on commit 175f290

Please sign in to comment.