summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/types.h
diff options
context:
space:
mode:
authorSven Eckelmann2016-07-27 12:31:07 +0200
committerSimon Wunderlich2016-10-19 08:37:52 +0200
commit176e5b772b113f9ab013d574e13d8a433d47bbcb (patch)
treecdac0bb46e98ab5c2529499d2170813ea6521504 /net/batman-adv/types.h
parentbatman-adv: Remove needless init of variables on stack (diff)
downloadkernel-qcow2-linux-176e5b772b113f9ab013d574e13d8a433d47bbcb.tar.gz
kernel-qcow2-linux-176e5b772b113f9ab013d574e13d8a433d47bbcb.tar.xz
kernel-qcow2-linux-176e5b772b113f9ab013d574e13d8a433d47bbcb.zip
batman-adv: Use proper name for fragments list head
The batman-adv codebase is using "list" for the list node (prev/next) and <list content descriptor>+"_list" for the head of a list. Not using this naming scheme can up in confusions because list_head is used for both the head of the list and the list node (prev/next) in each item of the list. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/types.h')
-rw-r--r--net/batman-adv/types.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index 97336ec0c601..d31e7ec22a60 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -184,7 +184,7 @@ struct batadv_orig_ifinfo {
/**
* struct batadv_frag_table_entry - head in the fragment buffer table
- * @head: head of list with fragments
+ * @fragment_list: head of list with fragments
* @lock: lock to protect the list of fragments
* @timestamp: time (jiffie) of last received fragment
* @seqno: sequence number of the fragments in the list
@@ -192,8 +192,8 @@ struct batadv_orig_ifinfo {
* @total_size: expected size of the assembled packet
*/
struct batadv_frag_table_entry {
- struct hlist_head head;
- spinlock_t lock; /* protects head */
+ struct hlist_head fragment_list;
+ spinlock_t lock; /* protects fragment_list */
unsigned long timestamp;
u16 seqno;
u16 size;