]> git.baikalelectronics.ru Git - kernel.git/commit
inet: remove dead inetpeer sequence code
authorWillem de Bruijn <willemb@google.com>
Mon, 8 Sep 2014 23:08:34 +0000 (19:08 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Sep 2014 23:42:42 +0000 (16:42 -0700)
commit9c02825e42b902f040303eeab38604cafaa424ac
tree24ddbc5f3052e033a8721d0b0ef27b425823123f
parent4373dca1fac7308af049cc6289d405728b7320f8
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" (8fc042d7). 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>
include/net/inetpeer.h
net/ipv4/inetpeer.c