diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-03-27 20:53:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-27 20:53:31 -0400 |
commit | 8d3308687f7f1eaa1bb5d202d14752d5f90068eb (patch) | |
tree | fa32a8ac2818950bbe7ab1e5f1e3a2ab4970b9b5 /include/net | |
parent | c2aa270ad73d385bd6cdebf5d741bdf18a3e17ad (diff) |
[NET]: uninline dst_release
Codiff stats (allyesconfig, v2.6.24-mm1):
-16420 187 funcs, 103 +, 16523 -, diff: -16420 --- dst_release
Without number of debug related CONFIGs (v2.6.25-rc2-mm1):
-7257 186 funcs, 70 +, 7327 -, diff: -7257 --- dst_release
dst_release | +40
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dst.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index ae13370e8484..002500e631f5 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
@@ -163,15 +163,7 @@ struct dst_entry * dst_clone(struct dst_entry * dst) | |||
163 | return dst; | 163 | return dst; |
164 | } | 164 | } |
165 | 165 | ||
166 | static inline | 166 | extern void dst_release(struct dst_entry *dst); |
167 | void dst_release(struct dst_entry * dst) | ||
168 | { | ||
169 | if (dst) { | ||
170 | WARN_ON(atomic_read(&dst->__refcnt) < 1); | ||
171 | smp_mb__before_atomic_dec(); | ||
172 | atomic_dec(&dst->__refcnt); | ||
173 | } | ||
174 | } | ||
175 | 167 | ||
176 | /* Children define the path of the packet through the | 168 | /* Children define the path of the packet through the |
177 | * Linux networking. Thus, destinations are stackable. | 169 | * Linux networking. Thus, destinations are stackable. |