diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-07-01 14:09:12 +0200 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-08-23 14:02:44 +0200 |
commit | d657e621a0f5584cf269b5b3d733a4cbb2497900 (patch) | |
tree | 316386108a9c7f599e346df9cf8a3e0131262a11 /net/batman-adv/types.h | |
parent | 3a7f291bf6d7ef81d45c54ccad4f5eda506076b4 (diff) |
batman-adv: add reference counting for type batadv_tt_orig_list_entry
The batadv_tt_orig_list_entry structure didn't have any refcounting mechanism so
far. This patch introduces it and makes the structure being usable in much more
complex context.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/types.h')
-rw-r--r-- | net/batman-adv/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index 7812b6edda13..664ef8148555 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @@ -282,6 +282,7 @@ struct batadv_tt_global_entry { struct batadv_tt_orig_list_entry { struct batadv_orig_node *orig_node; uint8_t ttvn; + atomic_t refcount; struct rcu_head rcu; struct hlist_node list; }; |