|
@@ -185,7 +185,7 @@ typedef struct {
|
|
|
|
|
|
typedef struct ax25_route {
|
|
|
struct ax25_route *next;
|
|
|
- atomic_t refcount;
|
|
|
+ refcount_t refcount;
|
|
|
ax25_address callsign;
|
|
|
struct net_device *dev;
|
|
|
ax25_digi *digipeat;
|
|
@@ -194,14 +194,14 @@ typedef struct ax25_route {
|
|
|
|
|
|
static inline void ax25_hold_route(ax25_route *ax25_rt)
|
|
|
{
|
|
|
- atomic_inc(&ax25_rt->refcount);
|
|
|
+ refcount_inc(&ax25_rt->refcount);
|
|
|
}
|
|
|
|
|
|
void __ax25_put_route(ax25_route *ax25_rt);
|
|
|
|
|
|
static inline void ax25_put_route(ax25_route *ax25_rt)
|
|
|
{
|
|
|
- if (atomic_dec_and_test(&ax25_rt->refcount))
|
|
|
+ if (refcount_dec_and_test(&ax25_rt->refcount))
|
|
|
__ax25_put_route(ax25_rt);
|
|
|
}
|
|
|
|