Skip to content

Commit

Permalink
percpu_ida: Removing unused arguement from alloc_local_tag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nick Swenson authored and Nicholas Bellinger committed Oct 3, 2013
1 parent 5f544cf commit 6b37838
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/percpu_ida.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ static inline void alloc_global_tags(struct percpu_ida *pool,
min(pool->nr_free, IDA_PCPU_BATCH_MOVE));
}

static inline unsigned alloc_local_tag(struct percpu_ida *pool,
struct percpu_ida_cpu *tags)
static inline unsigned alloc_local_tag(struct percpu_ida_cpu *tags)
{
int tag = -ENOSPC;

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

/* Fastpath */
tag = alloc_local_tag(pool, tags);
tag = alloc_local_tag(tags);
if (likely(tag >= 0)) {
local_irq_restore(flags);
return tag;
Expand Down

0 comments on commit 6b37838

Please sign in to comment.