diff options
Diffstat (limited to 'lib/percpu_ida.c')
| -rw-r--r-- | lib/percpu_ida.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/percpu_ida.c b/lib/percpu_ida.c index b0698ea972c6..9d054bf91d0f 100644 --- a/lib/percpu_ida.c +++ b/lib/percpu_ida.c | |||
| @@ -117,8 +117,7 @@ static inline void alloc_global_tags(struct percpu_ida *pool, | |||
| 117 | min(pool->nr_free, pool->percpu_batch_size)); | 117 | min(pool->nr_free, pool->percpu_batch_size)); |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | static inline unsigned alloc_local_tag(struct percpu_ida *pool, | 120 | static inline unsigned alloc_local_tag(struct percpu_ida_cpu *tags) |
| 121 | struct percpu_ida_cpu *tags) | ||
| 122 | { | 121 | { |
| 123 | int tag = -ENOSPC; | 122 | int tag = -ENOSPC; |
| 124 | 123 | ||
| @@ -159,7 +158,7 @@ int percpu_ida_alloc(struct percpu_ida *pool, gfp_t gfp) | |||
| 159 | tags = this_cpu_ptr(pool->tag_cpu); | 158 | tags = this_cpu_ptr(pool->tag_cpu); |
| 160 | 159 | ||
| 161 | /* Fastpath */ | 160 | /* Fastpath */ |
| 162 | tag = alloc_local_tag(pool, tags); | 161 | tag = alloc_local_tag(tags); |
| 163 | if (likely(tag >= 0)) { | 162 | if (likely(tag >= 0)) { |
| 164 | local_irq_restore(flags); | 163 | local_irq_restore(flags); |
| 165 | return tag; | 164 | return tag; |
