Skip to content

Commit 6b37838

Browse files
Nick SwensonNicholas Bellinger
authored andcommitted
percpu_ida: Removing unused arguement from alloc_local_tag
Removing unused struct percpu_ida *pool from arguements of alloc_local_tag, changed it's one use in percpu_ida.c (nab: Fixed reference of idr.c -> percpu_ida.c) Signed-Off-By: Nick Swenson <nks@daterainc.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent 5f544cf commit 6b37838

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎lib/percpu_ida.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ static inline void alloc_global_tags(struct percpu_ida *pool,
126126
min(pool->nr_free, IDA_PCPU_BATCH_MOVE));
127127
}
128128

129-
static inline unsigned alloc_local_tag(struct percpu_ida *pool,
130-
struct percpu_ida_cpu *tags)
129+
static inline unsigned alloc_local_tag(struct percpu_ida_cpu *tags)
131130
{
132131
int tag = -ENOSPC;
133132

@@ -168,7 +167,7 @@ int percpu_ida_alloc(struct percpu_ida *pool, gfp_t gfp)
168167
tags = this_cpu_ptr(pool->tag_cpu);
169168

170169
/* Fastpath */
171-
tag = alloc_local_tag(pool, tags);
170+
tag = alloc_local_tag(tags);
172171
if (likely(tag >= 0)) {
173172
local_irq_restore(flags);
174173
return tag;

0 commit comments

Comments
 (0)