diff options
author | Willem de Bruijn <willemb@google.com> | 2014-09-09 03:08:34 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-09 03:42:42 +0400 |
commit | a7f26b7e1ee73ac9e766c430fea5af658d839954 (patch) | |
tree | 24ddbc5f3052e033a8721d0b0ef27b425823123f /include | |
parent | 1923d6e4186c9470a83d0179e86e1aea8cfcbe67 (diff) | |
download | linux-a7f26b7e1ee73ac9e766c430fea5af658d839954.tar.xz |
inet: remove dead inetpeer sequence code
inetpeer sequence numbers are no longer incremented, so no need to
check and flush the tree. The function that increments the sequence
number was already dead code and removed in in "ipv4: remove unused
function" (068a6e18). Remove the code that checks for a change, too.
Verifying that v4_seq and v6_seq are never incremented and thus that
flush_check compares bp->flush_seq to 0 is trivial.
The second part of the change removes flush_check completely even
though bp->flush_seq is exactly !0 once, at initialization. This
change is correct because the time this branch is true is when
bp->root == peer_avl_empty_rcu, in which the branch and
inetpeer_invalidate_tree are a NOOP.
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/inetpeer.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index 01d590ee5e7e..80479abddf73 100644 --- a/include/net/inetpeer.h +++ b/include/net/inetpeer.h @@ -61,7 +61,6 @@ struct inet_peer { struct inet_peer_base { struct inet_peer __rcu *root; seqlock_t lock; - u32 flush_seq; int total; }; |