提交 6b378382 编写于 作者: N Nick Swenson 提交者: Nicholas Bellinger

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: NNick Swenson <nks@daterainc.com>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 5f544cfa
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册