mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] percpu_ida: Removing unused arguement from alloc_local_tag
@ 2013-10-03  0:55 Nick Swenson
  2013-10-03  1:15 ` Nicholas A. Bellinger
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Swenson @ 2013-10-03  0:55 UTC (permalink / raw)
  To: linux-kernel; +Cc: target-devel, Kent Overstreet, Nick Swenson

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] percpu_ida: Removing unused arguement from alloc_local_tag
  2013-10-03  0:55 [PATCH] percpu_ida: Removing unused arguement from alloc_local_tag Nick Swenson
@ 2013-10-03  1:15 ` Nicholas A. Bellinger
  0 siblings, 0 replies; 2+ messages in thread
From: Nicholas A. Bellinger @ 2013-10-03  1:15 UTC (permalink / raw)
  To: Nick Swenson; +Cc: linux-kernel, target-devel, Kent Overstreet

On Wed, 2013-10-02 at 17:55 -0700, Nick Swenson wrote:
> 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>
> ---

Nice patch, but the upstream version of percpu_ida lives in
lib/percpu_ida.c, and not lib/idr.c.  :-)

Soooo, modified your patch to use this location instead, and applied
target-pending/for-next.

Thanks!

--nab

>  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;



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-03  1:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-03  0:55 [PATCH] percpu_ida: Removing unused arguement from alloc_local_tag Nick Swenson
2013-10-03  1:15 ` Nicholas A. Bellinger

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®