X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Fdst.h;h=002500e631f5a96787f035ade4a6c255aad74713;hb=e51171019bb0e1f9fb57c25bd2e38ce652eaea27;hp=ae13370e8484528a8501b0dbf4a8091ff5dd7e95;hpb=074fcab574a36edec35d2e74955250f2e17d6000;p=linux-2.6 diff --git a/include/net/dst.h b/include/net/dst.h index ae13370e84..002500e631 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -163,15 +163,7 @@ struct dst_entry * dst_clone(struct dst_entry * dst) return dst; } -static inline -void dst_release(struct dst_entry * dst) -{ - if (dst) { - WARN_ON(atomic_read(&dst->__refcnt) < 1); - smp_mb__before_atomic_dec(); - atomic_dec(&dst->__refcnt); - } -} +extern void dst_release(struct dst_entry *dst); /* Children define the path of the packet through the * Linux networking. Thus, destinations are stackable.