diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-12 00:04:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-12 14:39:40 -0400 |
commit | efd7ef1c1929d7a0329d4349252863c04d6f1729 (patch) | |
tree | 66a1d5ba57a27fda7665da756551c10ac0ebf656 /net/ipv4/fib_semantics.c | |
parent | 6c7005f6cb1bf63bb1f505ef69364fb2cc00628e (diff) |
net: Kill hold_net release_net
hold_net and release_net were an idea that turned out to be useless.
The code has been disabled since 2008. Kill the code it is long past due.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_semantics.c')
-rw-r--r-- | net/ipv4/fib_semantics.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index c6d267442dac..66c1e4fbf884 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c | |||
@@ -213,7 +213,6 @@ static void free_fib_info_rcu(struct rcu_head *head) | |||
213 | rt_fibinfo_free(&nexthop_nh->nh_rth_input); | 213 | rt_fibinfo_free(&nexthop_nh->nh_rth_input); |
214 | } endfor_nexthops(fi); | 214 | } endfor_nexthops(fi); |
215 | 215 | ||
216 | release_net(fi->fib_net); | ||
217 | if (fi->fib_metrics != (u32 *) dst_default_metrics) | 216 | if (fi->fib_metrics != (u32 *) dst_default_metrics) |
218 | kfree(fi->fib_metrics); | 217 | kfree(fi->fib_metrics); |
219 | kfree(fi); | 218 | kfree(fi); |
@@ -814,7 +813,7 @@ struct fib_info *fib_create_info(struct fib_config *cfg) | |||
814 | } else | 813 | } else |
815 | fi->fib_metrics = (u32 *) dst_default_metrics; | 814 | fi->fib_metrics = (u32 *) dst_default_metrics; |
816 | 815 | ||
817 | fi->fib_net = hold_net(net); | 816 | fi->fib_net = net; |
818 | fi->fib_protocol = cfg->fc_protocol; | 817 | fi->fib_protocol = cfg->fc_protocol; |
819 | fi->fib_scope = cfg->fc_scope; | 818 | fi->fib_scope = cfg->fc_scope; |
820 | fi->fib_flags = cfg->fc_flags; | 819 | fi->fib_flags = cfg->fc_flags; |