diff options
Diffstat (limited to 'net/core/dst.c')
-rw-r--r-- | net/core/dst.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/dst.c b/net/core/dst.c index 1a53fb39b7e0..0ab9a981fc6d 100644 --- a/net/core/dst.c +++ b/net/core/dst.c | |||
@@ -29,7 +29,7 @@ | |||
29 | * 4) All operations modify state, so a spinlock is used. | 29 | * 4) All operations modify state, so a spinlock is used. |
30 | */ | 30 | */ |
31 | static struct dst_entry *dst_garbage_list; | 31 | static struct dst_entry *dst_garbage_list; |
32 | #if RT_CACHE_DEBUG >= 2 | 32 | #if RT_CACHE_DEBUG >= 2 |
33 | static atomic_t dst_total = ATOMIC_INIT(0); | 33 | static atomic_t dst_total = ATOMIC_INIT(0); |
34 | #endif | 34 | #endif |
35 | static DEFINE_SPINLOCK(dst_lock); | 35 | static DEFINE_SPINLOCK(dst_lock); |
@@ -142,7 +142,7 @@ void * dst_alloc(struct dst_ops * ops) | |||
142 | dst->path = dst; | 142 | dst->path = dst; |
143 | dst->input = dst_discard_in; | 143 | dst->input = dst_discard_in; |
144 | dst->output = dst_discard_out; | 144 | dst->output = dst_discard_out; |
145 | #if RT_CACHE_DEBUG >= 2 | 145 | #if RT_CACHE_DEBUG >= 2 |
146 | atomic_inc(&dst_total); | 146 | atomic_inc(&dst_total); |
147 | #endif | 147 | #endif |
148 | atomic_inc(&ops->entries); | 148 | atomic_inc(&ops->entries); |
@@ -203,7 +203,7 @@ again: | |||
203 | dst->ops->destroy(dst); | 203 | dst->ops->destroy(dst); |
204 | if (dst->dev) | 204 | if (dst->dev) |
205 | dev_put(dst->dev); | 205 | dev_put(dst->dev); |
206 | #if RT_CACHE_DEBUG >= 2 | 206 | #if RT_CACHE_DEBUG >= 2 |
207 | atomic_dec(&dst_total); | 207 | atomic_dec(&dst_total); |
208 | #endif | 208 | #endif |
209 | kmem_cache_free(dst->ops->kmem_cachep, dst); | 209 | kmem_cache_free(dst->ops->kmem_cachep, dst); |