aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dst.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/dst.c')
-rw-r--r--net/core/dst.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/dst.c b/net/core/dst.c
index f9eace78d354..61dd9d3951f1 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 */
31static struct dst_entry *dst_garbage_list; 31static struct dst_entry *dst_garbage_list;
32#if RT_CACHE_DEBUG >= 2 32#if RT_CACHE_DEBUG >= 2
33static atomic_t dst_total = ATOMIC_INIT(0); 33static atomic_t dst_total = ATOMIC_INIT(0);
34#endif 34#endif
35static DEFINE_SPINLOCK(dst_lock); 35static DEFINE_SPINLOCK(dst_lock);
@@ -141,7 +141,7 @@ void * dst_alloc(struct dst_ops * ops)
141 dst->path = dst; 141 dst->path = dst;
142 dst->input = dst_discard_in; 142 dst->input = dst_discard_in;
143 dst->output = dst_discard_out; 143 dst->output = dst_discard_out;
144#if RT_CACHE_DEBUG >= 2 144#if RT_CACHE_DEBUG >= 2
145 atomic_inc(&dst_total); 145 atomic_inc(&dst_total);
146#endif 146#endif
147 atomic_inc(&ops->entries); 147 atomic_inc(&ops->entries);
@@ -202,7 +202,7 @@ again:
202 dst->ops->destroy(dst); 202 dst->ops->destroy(dst);
203 if (dst->dev) 203 if (dst->dev)
204 dev_put(dst->dev); 204 dev_put(dst->dev);
205#if RT_CACHE_DEBUG >= 2 205#if RT_CACHE_DEBUG >= 2
206 atomic_dec(&dst_total); 206 atomic_dec(&dst_total);
207#endif 207#endif
208 kmem_cache_free(dst->ops->kmem_cachep, dst); 208 kmem_cache_free(dst->ops->kmem_cachep, dst);