diff options
author | David S. Miller <davem@davemloft.net> | 2012-06-25 19:15:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-25 19:18:10 -0400 |
commit | 1d5873e9d75bb72012a6c1327a368d0d2b13581f (patch) | |
tree | 20f4d5b75bdffbf1945008aabec946b8ff3f5053 /net/batman-adv/hard-interface.h | |
parent | 7665de15642dfb1709177517aa0488162727342c (diff) | |
parent | a513088d022c8f59cebe17c567797c220563b517 (diff) |
Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge
Included changes:
- yet another batch of 'namespace cleaning' patches
Conflicts:
net/batman-adv/translation-table.c
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/hard-interface.h')
-rw-r--r-- | net/batman-adv/hard-interface.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h index 6bc12c0eb2f0..d66dabd620b7 100644 --- a/net/batman-adv/hard-interface.h +++ b/net/batman-adv/hard-interface.h | |||
@@ -42,14 +42,15 @@ void batadv_update_min_mtu(struct net_device *soft_iface); | |||
42 | void batadv_hardif_free_rcu(struct rcu_head *rcu); | 42 | void batadv_hardif_free_rcu(struct rcu_head *rcu); |
43 | bool batadv_is_wifi_iface(int ifindex); | 43 | bool batadv_is_wifi_iface(int ifindex); |
44 | 44 | ||
45 | static inline void hardif_free_ref(struct hard_iface *hard_iface) | 45 | static inline void |
46 | batadv_hardif_free_ref(struct hard_iface *hard_iface) | ||
46 | { | 47 | { |
47 | if (atomic_dec_and_test(&hard_iface->refcount)) | 48 | if (atomic_dec_and_test(&hard_iface->refcount)) |
48 | call_rcu(&hard_iface->rcu, batadv_hardif_free_rcu); | 49 | call_rcu(&hard_iface->rcu, batadv_hardif_free_rcu); |
49 | } | 50 | } |
50 | 51 | ||
51 | static inline struct hard_iface *primary_if_get_selected( | 52 | static inline struct hard_iface * |
52 | struct bat_priv *bat_priv) | 53 | batadv_primary_if_get_selected(struct bat_priv *bat_priv) |
53 | { | 54 | { |
54 | struct hard_iface *hard_iface; | 55 | struct hard_iface *hard_iface; |
55 | 56 | ||