summaryrefslogtreecommitdiff
path: root/lib/percpu_ida.c
diff options
context:
space:
mode:
authorNick Swenson <nks@daterainc.com>2013-10-02 17:55:45 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2013-10-03 04:30:16 -0700
commit6b378382396feb02c79ad562a01955df0529df45 (patch)
tree052383d0c66f27d4b8a5469873c6c607806a93c1 /lib/percpu_ida.c
parent5f544cfac956971099e906f94568bc3fd1a7108a (diff)
downloadlwn-6b378382396feb02c79ad562a01955df0529df45.tar.gz
lwn-6b378382396feb02c79ad562a01955df0529df45.zip
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>
Diffstat (limited to 'lib/percpu_ida.c')
-rw-r--r--lib/percpu_ida.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/percpu_ida.c b/lib/percpu_ida.c
index bab1ba2a4c71..e315903ec63a 100644
--- a/lib/percpu_ida.c
+++ b/lib/percpu_ida.c
@@ -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;
@@ -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;