batman-adv: Convert batadv_dat_entry to kref
[deliverable/linux.git] / net / batman-adv / types.h
index 05421afb1d74fe00ef78c2221f8cc4e2f670213e..9df8f39e478595d8837c63d2517a54c40c46e54c 100644 (file)
@@ -1087,7 +1087,7 @@ struct batadv_nc_node {
 struct batadv_nc_path {
        struct hlist_node hash_entry;
        struct rcu_head rcu;
-       atomic_t refcount;
+       struct kref refcount;
        struct list_head packet_list;
        spinlock_t packet_list_lock; /* Protects packet_list */
        u8 next_hop[ETH_ALEN];
@@ -1230,7 +1230,7 @@ struct batadv_dat_entry {
        unsigned short vid;
        unsigned long last_update;
        struct hlist_node hash_entry;
-       atomic_t refcount;
+       struct kref refcount;
        struct rcu_head rcu;
 };
 
This page took 0.024833 seconds and 5 git commands to generate.