diff options
author | Marek Lindner <mareklindner@neomailbox.ch> | 2015-06-28 22:16:06 +0800 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2015-08-25 00:12:22 +0200 |
commit | 7c26a53ba5e7e4bf2be3cb93f2fffaefccff2e3b (patch) | |
tree | 9d1356053bbb6f98a862cfb17d2b8e8a1055c03a /net/batman-adv/types.h | |
parent | 0b8336f5fc26f263821534d7a9a3633748692207 (diff) | |
download | op-kernel-dev-7c26a53ba5e7e4bf2be3cb93f2fffaefccff2e3b.zip op-kernel-dev-7c26a53ba5e7e4bf2be3cb93f2fffaefccff2e3b.tar.gz |
batman-adv: convert bat_priv->tt.req_list to hlist
Since the list's tail is never accessed using a double linked list head
wastes memory.
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/types.h')
-rw-r--r-- | net/batman-adv/types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index fe3695c..2f5e6c3 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @@ -537,7 +537,7 @@ struct batadv_priv_tt { struct list_head changes_list; struct batadv_hashtable *local_hash; struct batadv_hashtable *global_hash; - struct list_head req_list; + struct hlist_head req_list; struct list_head roam_list; spinlock_t changes_list_lock; /* protects changes */ spinlock_t req_list_lock; /* protects req_list */ @@ -1006,7 +1006,7 @@ struct batadv_tt_change_node { struct batadv_tt_req_node { u8 addr[ETH_ALEN]; unsigned long issued_at; - struct list_head list; + struct hlist_node list; }; /** |