From: Nick Swenson <nks@daterainc.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: target-devel <target-devel@vger.kernel.org>,
Kent Overstreet <kmo@daterainc.com>,
Nick Swenson <nks@daterainc.com>
Subject: [PATCH] percpu_ida: Removing unused arguement from alloc_local_tag
Date: Wed, 2 Oct 2013 17:55:45 -0700 [thread overview]
Message-ID: <1380761745-8605-1-git-send-email-nks@daterainc.com> (raw)
Removing unused struct percpu_ida *pool from arguemnts of
alloc_local_tag, changed it's one use in idr.c
Signed-Off-By: Nick Swenson <nks@daterainc.com>
---
lib/idr.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/idr.c b/lib/idr.c
index 26495e1..86e8f73 100644
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -1254,8 +1254,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;
@@ -1291,7 +1290,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;
--
1.8.4.rc3
next reply other threads:[~2013-10-03 0:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-03 0:55 Nick Swenson [this message]
2013-10-03 1:15 ` Nicholas A. Bellinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1380761745-8605-1-git-send-email-nks@daterainc.com \
--to=nks@daterainc.com \
--cc=kmo@daterainc.com \
--cc=linux-kernel@vger.kernel.org \
--cc=target-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®