Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26371
b: refs/heads/master
c: da753be
h: refs/heads/master
i:
  26369: b0ba5b2
  26367: a2574cb
v: v3
  • Loading branch information
Akinobu Mita authored and David S. Miller committed Apr 30, 2006
1 parent 3d4606b commit bc90fe4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a536e0778781c1f2ce38cf8e1d82ce258f0193c1
refs/heads/master: da753beaeb1446aa87bcca7e8a0026633a8914f0
2 changes: 1 addition & 1 deletion trunk/include/linux/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ static inline void hlist_del_rcu(struct hlist_node *n)

static inline void hlist_del_init(struct hlist_node *n)
{
if (n->pprev) {
if (!hlist_unhashed(n)) {
__hlist_del(n);
INIT_HLIST_NODE(n);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/net/inet_timewait_sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static inline void inet_twsk_add_bind_node(struct inet_timewait_sock *tw,

static inline int inet_twsk_dead_hashed(const struct inet_timewait_sock *tw)
{
return tw->tw_death_node.pprev != NULL;
return !hlist_unhashed(&tw->tw_death_node);
}

static inline void inet_twsk_dead_node_init(struct inet_timewait_sock *tw)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static inline int sk_unhashed(const struct sock *sk)

static inline int sk_hashed(const struct sock *sk)
{
return sk->sk_node.pprev != NULL;
return !sk_unhashed(sk);
}

static __inline__ void sk_node_init(struct hlist_node *node)
Expand Down

0 comments on commit bc90fe4

Please sign in to comment.