Linux-Fsdevel Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] idr: Fix a typo in idr_alloc_cyclic()'s comment
@ 2020-07-29  4:30 Wang Long
  0 siblings, 0 replies; only message in thread
From: Wang Long @ 2020-07-29  4:30 UTC (permalink / raw)
  To: willy; +Cc: linux-fsdevel, linux-kernel, w

This patch fix a typo in comment for function idr_alloc_cyclic().

Signed-off-by: Wang Long <w@laoqinren.net>
---
 lib/idr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/idr.c b/lib/idr.c
index c2cf2c5..47d203f 100644
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -100,7 +100,7 @@ int idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp)
  * @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
-- 
1.8.3.1





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-29  4:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29  4:30 [PATCH] idr: Fix a typo in idr_alloc_cyclic()'s comment Wang Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).