diff options
author | David S. Miller <davem@davemloft.net> | 2012-06-09 19:32:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-09 19:32:41 -0400 |
commit | 56a6b248eb345c1948ee60bf426de1ff7dd81509 (patch) | |
tree | 84748cfc069b11d6800b50e6ee71fa742a364c7b /net/ipv4/route.c | |
parent | c3426b47190d7c6785230c91a706fd42208b4120 (diff) |
inet: Consolidate inetpeer_invalidate_tree() interfaces.
We only need one interface for this operation, since we always know
which inetpeer root we want to flush.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 4cd35c3904d4..cf78343940de 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -935,7 +935,7 @@ static void rt_cache_invalidate(struct net *net) | |||
935 | 935 | ||
936 | get_random_bytes(&shuffle, sizeof(shuffle)); | 936 | get_random_bytes(&shuffle, sizeof(shuffle)); |
937 | atomic_add(shuffle + 1U, &net->ipv4.rt_genid); | 937 | atomic_add(shuffle + 1U, &net->ipv4.rt_genid); |
938 | inetpeer_invalidate_tree(net, AF_INET); | 938 | inetpeer_invalidate_tree(net->ipv4.peers); |
939 | } | 939 | } |
940 | 940 | ||
941 | /* | 941 | /* |
@@ -3401,7 +3401,7 @@ static void __net_exit ipv4_inetpeer_exit(struct net *net) | |||
3401 | struct inet_peer_base *bp = net->ipv4.peers; | 3401 | struct inet_peer_base *bp = net->ipv4.peers; |
3402 | 3402 | ||
3403 | net->ipv4.peers = NULL; | 3403 | net->ipv4.peers = NULL; |
3404 | __inetpeer_invalidate_tree(bp); | 3404 | inetpeer_invalidate_tree(bp); |
3405 | kfree(bp); | 3405 | kfree(bp); |
3406 | } | 3406 | } |
3407 | 3407 | ||